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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38c
xor eax, eax
cmp byte [ebp + 0x14], al
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx + 4]
setne al
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x38], 0
movsx esi, ax
lea eax, [esi*4]
sub ecx, eax
mov eax, dword [ecx + 4]
push eax
mov dword [esp + 0x68], esi
call fcn.00458b69
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
inc dword [eax]
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x40], ecx
lea ecx, [eax + esi - 3]
mov dword [esp + 0x44], edx
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
mov dword [esp + 0x74], ecx
cmp edx, ecx
je 0x47af9c
mov esi, edi
call fcn.00409f70
mov ecx, dword [ebp + 8]
mov dword [edi + 8], 1
mov dword [edi], 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push 0
push 4
add eax, ecx
call fcn.00404cc0
lea ecx, [esp + 0x3c]
call fcn.00402fb0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x68]
mov dword [esp + 0x74], eax
mov dword [esp + 0x10], eax
xor eax, eax
push ecx
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x30], 0x49d298
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
or ebx, 0xffffffff
call fcn.0045ee95
test al, al
jne 0x47affc
mov esi, edi
call fcn.00409f70
mov ecx, dword [ebp + 8]
mov dword [edi + 8], 1
mov dword [edi], 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push 0
push 2
add eax, ecx
call fcn.00404cc0
jmp 0x47b3f6
xor ecx, ecx
mov eax, 3
sub eax, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x74], ecx
jle 0x47b1d2
lea ecx, [eax*4]
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x2c]
inc ebx
push eax
mov dword [esp + 0x1c], ebx
call fcn.0043ad4e
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + edx]
push eax
call fcn.00458b69
mov ecx, dword [eax]
mov ebx, dword [esp + 0x14]
mov edx, dword [eax + 4]
lea esi, [ebx + ebx*2]
add esi, esi
mov dword [esp + 0x54], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
inc dword [eax]
add esi, esi
mov dword [esp + 0x58], edx
add esi, esi
lea edx, [esp + esi + 0x98]
mov dword [esp + 0x60], eax
push edx
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x64], ecx
call fcn.0045e28a
test al, al
je 0x47b2fd
cmp dword [esp + esi + 0xa0], 0x10
lea eax, [esp + esi + 0xa0]
mov dword [esp + 0x4c], eax
jne 0x47b1a2
cmp dword [esp + esi + 0xa4], 0
jne 0x47b1a2
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x18]
lea eax, [edx + eax + 4]
mov dword [esp + 0x24], eax
mov eax, dword [eax]
push eax
call fcn.00446df0
test al, al
je 0x47b332
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
push eax
call fcn.0044809f
lea ecx, [eax - 1]
mov eax, dword [esp + 0x10]
shr ecx, 2
lea esi, [esp + esi + 0xa8]
lea edx, [ecx + 1]
imul edx, dword [esi]
add dword [esp + 0x70], edx
add eax, ecx
mov dword [esp + 0x10], eax
sub eax, ecx
mov dword [esp + 0x50], esi
cmp eax, ebx
jle 0x47b15c
lea esi, [eax + ecx]
lea edx, [eax + eax*2]
lea esi, [esi + esi*2]
sub eax, ebx
lea edx, [esp + edx*8 + 0x98]
lea esi, [esp + esi*8 + 0x98]
mov dword [esp + 0x14], eax
mov eax, dword [edx]
mov dword [esi], eax
mov eax, dword [edx + 4]
mov dword [esi + 4], eax
mov eax, dword [edx + 8]
mov dword [esi + 8], eax
mov eax, dword [edx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edx + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edx + 0x14]
mov dword [esi + 0x14], eax
sub edx, 0x18
sub esi, 0x18
dec dword [esp + 0x14]
jne 0x47b12e
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
push eax
call fcn.00436fea
mov eax, dword [eax + 8]
lea ecx, [ecx + ebx + 1]
cmp ebx, ecx
jge 0x47b19f
mov edx, dword [esp + 0x4c]
sub ecx, ebx
add ebx, ecx
mov esi, dword [eax]
mov dword [edx - 8], esi
mov esi, dword [esp + 0x50]
mov dword [edx], 0x10
mov dword [edx + 4], 0
mov esi, dword [esi]
mov dword [edx + 8], esi
add eax, 4
add edx, 0x18
dec ecx
jne 0x47b17b
dec ebx
jmp 0x47b1ad
mov ecx, dword [esp + esi + 0xa8]
add dword [esp + 0x70], ecx
add dword [esp + 0x18], 8
lea ecx, [esp + 0x54]
call fcn.00402fb0
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x74]
jl 0x47b026
mov esi, dword [esp + 0x64]
cmp byte [ebp + 0x14], 0
je 0x47b367
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 4]
push eax
call fcn.0045037e
mov dword [esp + 0x68], eax
sub esp, 0x10
mov eax, esp
lea ecx, [esp + 0x38]
push ecx
push eax
call fcn.00435bb7
mov eax, dword [ebp + 0xc]
mov edx, 4
sub edx, esi
push edx
push eax
lea ecx, [esp + 0x80]
push ecx
call fcn.0045efc7
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x74]
lea eax, [esp + 0x68]
push eax
mov dword [esp + 0x78], edx
call fcn.00411afc
test eax, eax
jne 0x47b24e
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push 0x67
push ecx
call fcn.004669f6
push 0
call dword [0x487308]
push eax
call dword [0x4871c8]
mov dword [esp + 0x74], esi
inc esi
push esi
push 1
mov eax, edi
call fcn.0040f760
add esp, 8
cmp dword [esp + 0x78], 1
jne 0x47b283
push 0
push 1
push 0
call fcn.0040dee0
add esp, 0xc
push eax
lea edx, [esp + 0x84]
push edx
call fcn.00473575
xor ebx, ebx
cmp dword [esp + 0x74], ebx
jle 0x47b3d3
mov eax, dword [esp + 0x1c]
lea ecx, [eax*4]
mov dword [esp + 0x10], ecx
lea eax, [ebx + 1]
push eax
push 1
push 0
mov dword [esp + 0x28], eax
call fcn.0040dee0
mov edx, dword [esp + 0x38]
mov esi, eax
mov eax, dword [edx + ebx*4]
mov eax, dword [eax]
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
add eax, eax
add esp, 0xc
cmp dword [esp + eax + 0xa0], 0x10
jne 0x47b3b2
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x10]
mov ebx, dword [edx + eax + 4]
push ebx
call fcn.00446df0
push ebx
test al, al
je 0x47b39b
mov ebx, esi
call fcn.00409eb0
jmp 0x47b3c0
mov esi, edi
call fcn.00409f70
mov ecx, dword [ebp + 8]
mov dword [edi + 8], 1
mov dword [edi], 0
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 0
push 1
add eax, ecx
call fcn.00404cc0
lea ecx, [esp + 0x54]
call fcn.00402fb0
jmp 0x47b3f6
mov esi, edi
call fcn.00409f70
mov ecx, dword [ebp + 8]
mov dword [edi + 8], 1
mov dword [edi], 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push 0
push 5
add eax, ecx
call fcn.00404cc0
lea ecx, [esp + 0x54]
call fcn.00402fb0
jmp 0x47b3f6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
lea ecx, [esp + 0x6c]
push ecx
push edx
call fcn.0046c3e7
mov dword [esp + 0x38], eax
test eax, eax
jne 0x47b1ef
mov esi, edi
call fcn.00409f70
mov dword [edi + 8], 1
mov dword [edi], 0
jmp 0x47b3f6
call fcn.0045037e
mov ebx, eax
call fcn.00409f70
mov dword [esi + 8], 7
mov dword [esi], ebx
jmp 0x47b3c0
push esi
lea ecx, [esp + eax + 0x9c]
push ecx
call fcn.00473575
mov ebx, dword [esp + 0x1c]
add dword [esp + 0x10], 8
cmp ebx, dword [esp + 0x74]
jl 0x47b29e
cmp byte [ebp + 0x14], 0
jne 0x47b3f6
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov ecx, dword [eax]
push ecx
call fcn.00448795
test al, al
je 0x47b3f6
mov edx, dword [esp + 0x38]
push edx
call dword [0x487320]
lea ecx, [esp + 0x28]
call fcn.00446c89
lea ecx, [esp + 0x3c]
call fcn.00402fb0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10