Function at 0x40d4f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4eb5b8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x9c]
mov esi, ecx
mov dword [esp + 0x18], eax
xor ebx, ebx
mov edi, 0xf
mov eax, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40d550
sub eax, ecx
push eax
push esi
lea ecx, [esp + 0x70]
call fcn.00404fd0
mov dword [esp + 0x94], ebx
push 4
push str.__r_n_t
lea ecx, [esp + 0x54]
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], 0
call fcn.00404fd0
xor esi, esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x94], 2
mov edi, edi
mov eax, dword [esp + 0x4c]
mov ebp, 0x10
cmp dword [esp + 0x60], ebp
jae 0x40d5b3
lea eax, [esp + 0x4c]
mov ecx, dword [esp + 0x5c]
push ecx
push eax
mov eax, esi
lea ecx, [esp + 0x70]
call fcn.0040e200
mov edi, eax
cmp edi, 0xffffffff
je 0x40d618
cmp edi, esi
je 0x40d613
mov edx, edi
sub edx, esi
push edx
mov ecx, esi
lea esi, [esp + 0x34]
lea edx, [esp + 0x6c]
call fcn.0040daa0
mov ecx, eax
lea ebx, [esp + 0x1c]
mov byte [esp + 0x94], 3
call fcn.0040dc00
mov byte [esp + 0x94], 2
cmp dword [esp + 0x44], ebp
jb 0x40d611
mov eax, dword [esp + 0x30]
push eax
call fcn.004c9387
add esp, 4
xor ebx, ebx
lea esi, [edi + 1]
jmp 0x40d5a0
cmp esi, dword [esp + 0x78]
ja 0x40d65f
mov ecx, esi
push 0xffffffffffffffff
lea esi, [esp + 0x34]
lea edx, [esp + 0x6c]
call fcn.0040daa0
mov ecx, eax
lea ebx, [esp + 0x1c]
mov byte [esp + 0x94], 4
call fcn.0040dc00
mov byte [esp + 0x94], 2
cmp dword [esp + 0x44], ebp
jb 0x40d65d
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004c9387
add esp, 4
xor ebx, ebx
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov ecx, ebp
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edx, dword [esp + 0x18]
mov dword [edx], esi
mov dword [esp + 0x18], ebx
cmp edi, ebp
je 0x40d74b
mov eax, dword [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d697
sub eax, edx
lea edi, [esi + esi*4]
add edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edi
mov ebx, eax
push 0
push ebx
call fcn.004cf830
mov edi, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x18], ebx
lea esi, [ebx + esi*4]
push 0xffffffffffffffff
push 0
push edi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
call fcn.00406140
cmp dword [esp + 0x44], 0x10
mov eax, dword [esp + 0x30]
jae 0x40d6f8
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x40]
inc ecx
push ecx
push eax
push esi
call fcn.004ca7f0
mov edx, dword [esp + 0x4c]
mov dword [ebx], esi
add esp, 0xc
add ebx, 4
cmp dword [esp + 0x44], 0x10
lea esi, [esi + edx + 1]
jb 0x40d729
mov eax, dword [esp + 0x30]
push eax
call fcn.004c9387
add esp, 4
add edi, 0x1c
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
cmp edi, ebp
jne 0x40d6c6
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov byte [esp + 0x94], 1
cmp edi, ebx
je 0x40d78e
mov esi, edi
cmp edi, ebp
je 0x40d785
lea ecx, [ecx]
cmp dword [esi + 0x14], 0x10
jb 0x40d771
mov eax, dword [esi]
push eax
call fcn.004c9387
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], 0
add esi, 0x1c
cmp esi, ebp
jne 0x40d760
push edi
call fcn.004c9387
add esp, 4
mov esi, 0x10
mov byte [esp + 0x94], 0
cmp dword [esp + 0x60], esi
jb 0x40d7ae
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004c9387
add esp, 4
mov dword [esp + 0x94], 0xffffffff
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], 0
cmp dword [esp + 0x7c], esi
jb 0x40d7dd
mov edx, dword [esp + 0x68]
push edx
call fcn.004c9387
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004c9392
add esp, 0x84
ret