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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48eb58
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4ae7cc]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x4ae7cc]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov ebx, 0xf
xor esi, esi
mov eax, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], esi
mov byte [esp + 0x64], 0
lea edi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40ae30
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x6c]
call fcn.00402d50
mov dword [esp + 0x90], esi
push 4
push str.__r_n_t
lea ecx, [esp + 0x50]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], esi
mov byte [esp + 0x50], 0
call fcn.00402d50
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov byte [esp + 0x90], 2
lea esp, [esp]
cmp dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x48]
jae 0x40ae8f
lea eax, [esp + 0x48]
mov ecx, dword [esp + 0x58]
push ecx
push eax
mov eax, esi
lea ecx, [esp + 0x6c]
call fcn.0040bd40
mov edi, eax
cmp edi, 0xffffffff
je 0x40aef3
cmp edi, esi
je 0x40aeee
mov edx, edi
sub edx, esi
push edx
mov ecx, esi
lea esi, [esp + 0x30]
lea edx, [esp + 0x68]
call fcn.0040b490
mov ecx, eax
lea ebx, [esp + 0x18]
mov byte [esp + 0x90], 3
call fcn.0040b5f0
mov byte [esp + 0x90], 2
cmp dword [esp + 0x40], 0x10
jb 0x40aeee
mov eax, dword [esp + 0x2c]
push eax
call fcn.00475405
add esp, 4
lea esi, [edi + 1]
jmp 0x40ae80
cmp esi, dword [esp + 0x74]
ja 0x40af39
mov ecx, esi
push 0xffffffffffffffff
lea esi, [esp + 0x30]
lea edx, [esp + 0x68]
call fcn.0040b490
mov ecx, eax
lea ebx, [esp + 0x18]
mov byte [esp + 0x90], 4
call fcn.0040b5f0
mov byte [esp + 0x90], 2
cmp dword [esp + 0x40], 0x10
jb 0x40af39
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00475405
add esp, 4
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ecx, edi
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edx, dword [esp + 0x14]
mov dword [edx], esi
mov dword [esp + 0x14], 0
cmp ebx, edi
je 0x40b034
mov eax, dword [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40af75
sub eax, edx
lea ebx, [esi + esi*4]
add ebx, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebx
mov edi, eax
push 0
push edi
call fcn.0047a9a0
mov dword [esp + 0x20], edi
lea esi, [edi + esi*4]
mov ebx, edi
mov edi, dword [esp + 0x24]
add esp, 0xc
push 0xffffffffffffffff
push 0
push edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
call fcn.00403160
cmp dword [esp + 0x40], 0x10
mov eax, dword [esp + 0x2c]
jae 0x40afd9
lea eax, [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
inc ecx
push ecx
push eax
push esi
call fcn.00477820
mov edx, dword [esp + 0x48]
mov dword [ebx], esi
add esp, 0xc
add ebx, 4
cmp dword [esp + 0x40], 0x10
lea esi, [esi + edx + 1]
jb 0x40b00a
mov eax, dword [esp + 0x2c]
push eax
call fcn.00475405
add esp, 4
add edi, 0x1c
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
cmp edi, dword [esp + 0x1c]
jne 0x40afa7
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x90], 1
test ebx, ebx
je 0x40b078
mov esi, ebx
cmp ebx, edi
je 0x40b06f
cmp dword [esi + 0x14], 0x10
jb 0x40b057
mov eax, dword [esi]
push eax
call fcn.00475405
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x1c
cmp esi, edi
jne 0x40b046
push ebx
call fcn.00475405
add esp, 4
mov esi, 0x10
mov byte [esp + 0x90], 0
cmp dword [esp + 0x5c], esi
jb 0x40b098
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00475405
add esp, 4
mov dword [esp + 0x90], 0xffffffff
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
cmp dword [esp + 0x78], esi
jb 0x40b0cb
mov edx, dword [esp + 0x64]
push edx
call fcn.00475405
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00475410
mov esp, ebp
pop ebp
ret