Function at 0x414466
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
mov dword [esp + 0x4c], ecx
lea eax, [esp + 0x30]
mov ecx, dword [ebp + 0x18]
mov esi, edx
xor edx, edx
mov dword [esp + 0x44], esi
push edi
push eax
mov dword [ecx], edx
mov ebx, edx
mov dword [esp + 0x38], edx
mov edi, edx
mov dword [esp + 0x10], edx
mov ecx, esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x44], edx
mov edx, 0x4062e4
push 0x20019
call fcn.00415e5c
mov esi, eax
test esi, esi
js 0x4148bc
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x4c]
push eax
lea edx, [esp + 0x2c]
call fcn.00416064
mov esi, eax
test esi, esi
js 0x4148bc
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x38], eax
cmp dword [esp + 0x4c], eax
jbe 0x4148bc
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x38]
push 0x20019
mov edx, dword [edx + eax*4]
call fcn.00415e5c
mov esi, eax
test esi, esi
jns 0x414523
xor esi, esi
jmp 0x4147cb
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
push 0x10
push 0
push dword [eax + ecx*4]
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4147bd
cmp eax, 0xffffffff
je 0x4147bd
lea ecx, [esp + 0x44]
shr eax, 0x18
push ecx
and eax, 0xf
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
mov dword [esp + 0x5c], eax
call fcn.004141e3
mov ecx, dword [esp + 0x1c]
mov edx, 0x406448
push eax
push 0
call fcn.004164ed
mov esi, eax
cmp esi, 0xc0000034
je 0x41451c
cmp esi, 0xc0000225
je 0x41451c
test esi, esi
js 0x414854
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x48]
and dword [esp + 0x18], 0
push eax
push 0
push dword [ebp + 0xc]
push ebx
push dword [esp + 0x54]
call fcn.00413b65
mov esi, eax
cmp esi, 0xc0000023
jne 0x414854
push dword [esp + 0x18]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esp + 0xc], eax
test eax, eax
je 0x414845
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x4c]
push eax
push dword [ebp + 0xc]
push ebx
push dword [esp + 0x54]
call fcn.00413b65
mov esi, eax
test esi, esi
js 0x414854
lea eax, [edi + 0x14]
cmp eax, edi
jb 0x41484c
mov edx, dword [esp + 0x18]
lea edi, [edx + eax]
cmp edi, eax
jb 0x41484c
mov eax, dword [ebp + 0x18]
xor esi, esi
inc dword [eax]
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
cmp ebx, edi
jae 0x41463d
xor ebx, ebx
jmp 0x414684
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x10]
add eax, edi
mov dword [esp + 0x24], ecx
push edx
push dword [esp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 8], 1
mov dword [ecx + 0xc], eax
lea eax, [ecx + 0x14]
push eax
mov dword [ecx + 0x10], edx
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov edx, dword [esp + 0x18]
sub ebx, edi
mov eax, dword [ecx]
mov dword [esp + 0x1c], eax
test byte [ebp + 0xc], 8
je 0x414731
cmp dword [esp + 0x54], 1
jne 0x414731
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x3c]
mov ecx, dword [esp + 0x50]
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], ebx
push eax
lea eax, [esp + 0x24]
push eax
push dword [ebp + 0xc]
lea edx, [edx + 4]
push dword [esp + 0x3c]
call fcn.004142d5
mov esi, eax
test esi, esi
jns 0x4146ee
cmp esi, 0xc0000023
je 0x4146ee
cmp esi, 0xc0000225
je 0x41477a
cmp esi, 0xc0000034
jne 0x414854
jmp 0x41477a
mov eax, dword [esp + 0x20]
add eax, edi
cmp eax, edi
jb 0x41484c
mov ecx, dword [ebp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x3c]
xor esi, esi
add dword [ecx], eax
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], edi
jae 0x414714
xor ebx, ebx
jmp 0x41477a
test eax, eax
je 0x41477a
mov ebx, dword [ecx]
mov ecx, dword [esp + 0x1c]
sub ebx, edi
mov eax, dword [ebp + 0x10]
add eax, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
mov dword [ecx], eax
jmp 0x41477a
test byte [ebp + 0xc], 4
je 0x41477a
cmp dword [esp + 0x2c], 0x14000006
jne 0x41477a
mov eax, dword fs:[0x30]
push edx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esp + 0x40], eax
test eax, eax
je 0x41483e
mov ecx, dword [esp + 0x18]
push ecx
push dword [esp + 0x10]
mov dword [esp + 0x38], ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
shr dword [esp + 0x30], 4
push dword [esp + 0xc]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0x10]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [esp + 0x14]
call fcn.00415bf6
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
jmp 0x4147cb
mov ecx, dword [esp + 0x14]
call fcn.00415bf6
and dword [esp + 0x14], 0
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x4c]
jb 0x4144fc
mov edx, dword [esp + 0x40]
test edx, edx
je 0x414888
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], ebx
push eax
push dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
push dword [ebp + 0xc]
push eax
call fcn.0041436d
mov esi, eax
test esi, esi
jns 0x41481b
cmp esi, 0xc0000023
jne 0x414854
mov eax, dword [esp + 0x20]
add eax, edi
cmp eax, edi
jb 0x41484c
mov edi, eax
xor esi, esi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x414854
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp + 0x18]
add dword [ecx], eax
jmp 0x414854
mov esi, 0xc000009a
jmp 0x41486e
mov esi, 0xc000009a
jmp 0x414854
mov esi, 0xc0000095
or edi, 0xffffffff
mov eax, dword [esp + 0x40]
test eax, eax
je 0x41486e
push eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x414888
push eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [esp + 0x10], 0
je 0x4148a4
push dword [esp + 0x10]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4148b1
call fcn.00415bf6
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4148bc
and dword [eax], 0
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4148c9
call fcn.00415bf6
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], edi
jae 0x4148d5
mov esi, 0xc0000023
cmp dword [esp + 0x28], 0
je 0x4148f1
push dword [esp + 0x28]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [ebx], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14