Function at 0x47baea
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.00459769
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 0x47bb9c
mov esi, edi
call fcn.0040ab70
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.004058c0
lea ecx, [esp + 0x3c]
call fcn.00403bb0
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.0045fa95
test al, al
jne 0x47bbfc
mov esi, edi
call fcn.0040ab70
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.004058c0
jmp 0x47bff6
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 0x47bdd2
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.0043b94e
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + edx]
push eax
call fcn.00459769
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.0045ee8a
test al, al
je 0x47befd
cmp dword [esp + esi + 0xa0], 0x10
lea eax, [esp + esi + 0xa0]
mov dword [esp + 0x4c], eax
jne 0x47bda2
cmp dword [esp + esi + 0xa4], 0
jne 0x47bda2
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.004479f0
test al, al
je 0x47bf32
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
push eax
call fcn.00448c9f
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 0x47bd5c
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 0x47bd2e
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
push eax
call fcn.00437bea
mov eax, dword [eax + 8]
lea ecx, [ecx + ebx + 1]
cmp ebx, ecx
jge 0x47bd9f
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 0x47bd7b
dec ebx
jmp 0x47bdad
mov ecx, dword [esp + esi + 0xa8]
add dword [esp + 0x70], ecx
add dword [esp + 0x18], 8
lea ecx, [esp + 0x54]
call fcn.00403bb0
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x74]
jl 0x47bc26
mov esi, dword [esp + 0x64]
cmp byte [ebp + 0x14], 0
je 0x47bf67
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 4]
push eax
call fcn.00450f7e
mov dword [esp + 0x68], eax
sub esp, 0x10
mov eax, esp
lea ecx, [esp + 0x38]
push ecx
push eax
call fcn.004367b7
mov eax, dword [ebp + 0xc]
mov edx, 4
sub edx, esi
push edx
push eax
lea ecx, [esp + 0x80]
push ecx
call fcn.0045fbc7
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x74]
lea eax, [esp + 0x68]
push eax
mov dword [esp + 0x78], edx
call fcn.004126fc
test eax, eax
jne 0x47be4e
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push 0x67
push ecx
call fcn.004675f6
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.00410360
add esp, 8
cmp dword [esp + 0x78], 1
jne 0x47be83
push 0
push 1
push 0
call fcn.0040eae0
add esp, 0xc
push eax
lea edx, [esp + 0x84]
push edx
call fcn.00474175
xor ebx, ebx
cmp dword [esp + 0x74], ebx
jle 0x47bfd3
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.0040eae0
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 0x47bfb2
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.004479f0
push ebx
test al, al
je 0x47bf9b
mov ebx, esi
call fcn.0040aab0
jmp 0x47bfc0
mov esi, edi
call fcn.0040ab70
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.004058c0
lea ecx, [esp + 0x54]
call fcn.00403bb0
jmp 0x47bff6
mov esi, edi
call fcn.0040ab70
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.004058c0
lea ecx, [esp + 0x54]
call fcn.00403bb0
jmp 0x47bff6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
lea ecx, [esp + 0x6c]
push ecx
push edx
call fcn.0046cfe7
mov dword [esp + 0x38], eax
test eax, eax
jne 0x47bdef
mov esi, edi
call fcn.0040ab70
mov dword [edi + 8], 1
mov dword [edi], 0
jmp 0x47bff6
call fcn.00450f7e
mov ebx, eax
call fcn.0040ab70
mov dword [esi + 8], 7
mov dword [esi], ebx
jmp 0x47bfc0
push esi
lea ecx, [esp + eax + 0x9c]
push ecx
call fcn.00474175
mov ebx, dword [esp + 0x1c]
add dword [esp + 0x10], 8
cmp ebx, dword [esp + 0x74]
jl 0x47be9e
cmp byte [ebp + 0x14], 0
jne 0x47bff6
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov ecx, dword [eax]
push ecx
call fcn.00449395
test al, al
je 0x47bff6
mov edx, dword [esp + 0x38]
push edx
call dword [0x487320]
lea ecx, [esp + 0x28]
call fcn.00447889
lea ecx, [esp + 0x3c]
call fcn.00403bb0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10