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

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0xc0
push ebp
mov ebp, ecx
test edx, edx
ja 0x47af1d
xor al, al
pop ebp
add esp, 0xc0
ret 4
mov eax, dword [ebp + 0x24]
cmp edx, eax
jb 0x47af2d
mov edx, eax
mov dword [esp + 0xc8], edx
test edx, edx
jbe 0x47af11
mov ecx, dword [ebp + 0x90]
lea eax, [ebp + 0x18]
mov dword [esp + 0x98], eax
mov eax, ecx
mov byte [esp + 7], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x9c], eax
test ecx, ecx
je 0x47b5ef
push ebx
push esi
push edi
jmp 0x47af7b
mov edx, dword [esp + 0xd4]
cmp dword [esp + 0x64], edx
jae 0x47b5db
mov eax, dword [eax + 8]
mov ebx, dword [eax + 8]
mov edi, dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x70], eax
jne 0x47afa9
mov byte [esp + 0x13], 0
jmp 0x47b5be
push edi
push ebx
lea eax, [esp + 0x94]
push eax
mov ecx, ebp
call fcn.0047ab30
cmp dword [esp + 0x98], 0
ja 0x47b17e
jb 0x47afd8
cmp dword [esp + 0x94], 0
ja 0x47b17e
cmp byte [ebp + 0x10], 0
jne 0x47b5be
lea edx, [esp + 0x58]
lea ecx, [ebp + 0x98]
push edx
call fcn.0047a100
test al, al
je 0x47b5be
push edi
push ebx
mov ecx, ebp
call fcn.0047aa40
cmp eax, dword [ebp + 0xec]
jae 0x47b5be
mov ecx, dword [ebp + 0xe8]
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*8 + 4]
lea esi, [ecx + eax*8]
mov eax, dword [esi]
cmp edi, edx
jb 0x47b5be
ja 0x47b033
cmp ebx, eax
jb 0x47b5be
mov ecx, dword [esi + 8]
add ecx, eax
mov eax, dword [esi + 0xc]
adc eax, edx
cmp edi, eax
ja 0x47b5be
jb 0x47b04f
cmp ebx, ecx
jae 0x47b5be
lea edx, [esp + 0x20]
xor eax, eax
push edx
push esi
mov ecx, ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.00479bf0
test al, al
jne 0x47b078
lea ecx, [esp + 0x20]
call fcn.00417bf0
jmp 0x47b5be
xor edi, edi
cmp dword [esi + 0xc], edi
jb 0x47b104
ja 0x47b08e
cmp dword [esi + 8], edi
jbe 0x47b104
xor ecx, ecx
xor eax, eax
mov edx, dword [esi]
add edx, ecx
mov ecx, dword [esi + 4]
adc ecx, eax
mov dword [esp + 0x7c], edx
lea edx, [esp + 0x7c]
mov dword [esp + 0x80], ecx
lea ebx, [ebp + 0x98]
push edx
mov ecx, ebx
call fcn.0047a100
test al, al
je 0x47b0f3
push 1
lea eax, [esp + 0x80]
push eax
mov ecx, ebx
call fcn.0047a060
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [ebp + 0x18]
call fcn.0047ae80
test eax, eax
je 0x47b0f3
mov ecx, dword [ebp]
push ecx
imul ecx, edi
add ecx, dword [esp + 0x24]
push eax
push ecx
call fcn.0049c200
add esp, 0xc
inc edi
xor eax, eax
mov ecx, edi
cmp eax, dword [esi + 0xc]
jb 0x47b092
ja 0x47b104
cmp ecx, dword [esi + 8]
jb 0x47b092
mov ecx, dword [esp + 0x24]
mov eax, 0xcccccccd
mul ecx
shr edx, 3
lea edx, [edx + ecx + 0xc]
push edx
lea ecx, [esp + 0x88]
call fcn.00408640
cmp dword [esp + 0x20], 0
jne 0x47b144
lea ecx, [esp + 0x84]
call fcn.00417bf0
lea ecx, [esp + 0x20]
call fcn.00417bf0
jmp 0x47b5be
mov ecx, esi
call fcn.00479690
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x24]
push ecx
push esi
mov ecx, ebp
call fcn.00479820
lea ecx, [esp + 0x84]
test al, al
jne 0x47b131
call fcn.00417bf0
lea ecx, [esp + 0x20]
call fcn.00417bf0
jmp 0x47b5be
mov edx, dword [esp + 0x58]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
or eax, 0xffffffff
cmp byte [ebp + 0x11], 0
mov ebx, 1
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
jne 0x47b1dd
xor edx, edx
mov eax, 0x10000
div dword [ebp]
mov ecx, dword [ebp + 0x94]
shr ecx, 2
cmp eax, ecx
jae 0x47b1d3
mov dword [esp + 0x14], eax
jmp 0x47b1d9
mov eax, ecx
mov dword [esp + 0x14], ecx
cmp eax, ebx
ja 0x47b1e1
mov dword [esp + 0x14], ebx
cmp byte [ebp + 0x10], 0
jne 0x47b1f8
push ebx
lea eax, [esp + 0x5c]
push eax
lea ecx, [ebp + 0x98]
call fcn.0047a060
mov esi, dword [ebp]
imul esi, dword [esp + 0x14]
mov eax, 0xcccccccd
mul esi
shr edx, 3
lea eax, [edx + esi + 0xc]
mov dword [esp + 0x44], eax
add eax, esi
cmp dword [esp + 0x2c], eax
jae 0x47b224
push eax
lea ecx, [esp + 0x2c]
call fcn.004080c0
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x47b235
mov byte [esp + 0x13], al
jmp 0x47b5be
lea ecx, [eax + esi]
mov dword [esp + 0xac], ecx
cmp dword [esp + 0x14], ebx
jbe 0x47b4d3
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x58]
xor esi, esi
push esi
push edx
push edi
push eax
mov dword [esp + 0xdc], esi
call fcn.0049c5c0
mov ecx, dword [esp + 0x14]
push esi
push ecx
push edx
push eax
call fcn.0049c6b0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
cmp edi, edx
jb 0x47b36e
ja 0x47b28e
mov edx, eax
cmp dword [esp + 0x58], edx
jbe 0x47b36e
mov esi, dword [esp + 0x58]
add esi, 0xffffffff
adc edi, 0xffffffff
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], edi
cmp edi, dword [esp + 0x1c]
jb 0x47b36e
ja 0x47b2c0
cmp esi, dword [esp + 0x18]
jb 0x47b36e
jmp 0x47b2c0
cmp edi, dword [esp + 0x90]
jb 0x47b36a
ja 0x47b2dc
cmp esi, dword [esp + 0x8c]
jb 0x47b36a
lea eax, [esp + 0x68]
push eax
lea ecx, [ebp + 0x18]
call fcn.0047ae80
mov dword [esp + 0x60], eax
test eax, eax
je 0x47b36a
cmp byte [ebp + 0x10], 0
jne 0x47b30d
push 1
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [ebp + 0x98]
call fcn.0047a060
mov eax, dword [ebp]
mov edx, dword [esp + 0x60]
mov ecx, esi
sub ecx, dword [esp + 0x18]
push eax
imul ecx, eax
add ecx, dword [esp + 0x2c]
push edx
push ecx
call fcn.0049c200
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
add esp, 0xc
sub edx, esi
sbb eax, edi
add ebx, edx
adc dword [esp + 0x3c], eax
mov dword [esp + 0x30], esi
add esi, 0xffffffff
mov dword [esp + 0x34], edi
adc edi, 0xffffffff
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], edi
cmp edi, dword [esp + 0x1c]
ja 0x47b2c0
jb 0x47b36a
cmp esi, dword [esp + 0x18]
jae 0x47b2c0
mov dword [esp + 0x38], ebx
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xcc]
mov esi, ebx
add esi, dword [esp + 0x30]
adc edi, dword [esp + 0x34]
add ecx, dword [esp + 0x18]
mov dword [esp + 0x74], esi
adc eax, dword [esp + 0x1c]
mov dword [esp + 0x78], edi
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], eax
cmp edi, eax
ja 0x47b4a8
jb 0x47b3b7
cmp esi, ecx
jae 0x47b4a8
mov eax, dword [esp + 0x8c]
add eax, dword [esp + 0x94]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x90]
adc eax, dword [esp + 0x98]
mov dword [esp + 0xb4], eax
cmp edi, dword [esp + 0xb4]
ja 0x47b4a4
jb 0x47b3fd
cmp esi, dword [esp + 0xb0]
jae 0x47b4a4
mov ecx, dword [ebp + 0x64]
push 0
push ecx
push edi
push esi
call fcn.0049d890
push eax
lea edx, [esp + 0x78]
push edx
lea ecx, [ebp + 0x18]
call fcn.00479fd0
test eax, eax
je 0x47b4a4
add eax, 0x10
mov dword [esp + 0x60], eax
je 0x47b4a4
cmp byte [ebp + 0x10], 0
jne 0x47b445
push 1
lea eax, [esp + 0x78]
push eax
lea ecx, [ebp + 0x98]
call fcn.0047a060
mov eax, dword [ebp]
mov ecx, dword [esp + 0x60]
mov edx, esi
sub edx, dword [esp + 0x18]
push eax
imul edx, eax
add edx, dword [esp + 0x2c]
push ecx
push edx
call fcn.0049c200
add esp, 0xc
mov ebx, esi
sub ebx, dword [esp + 0x30]
mov eax, edi
sbb eax, dword [esp + 0x34]
add ebx, 1
adc eax, 0
add esi, 1
adc edi, 0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], edi
cmp edi, dword [esp + 0xa0]
jb 0x47b3e1
ja 0x47b4a4
cmp esi, dword [esp + 0x9c]
jb 0x47b3e1
mov dword [esp + 0x38], ebx
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp]
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x28]
sub eax, edx
imul eax, ecx
add eax, edi
mov esi, eax
mov eax, dword [esp + 0x70]
push ecx
push eax
mov eax, dword [esp + 0x60]
sub eax, edx
imul eax, ecx
add eax, edi
jmp 0x47b4de
mov ecx, dword [ebp]
mov edx, dword [esp + 0x70]
push ecx
mov esi, eax
push edx
push eax
mov dword [esp + 0x4c], esi
call fcn.0049c200
mov edx, dword [ebp]
mov eax, dword [esp + 0xb8]
imul edx, ebx
mov ecx, dword [esp + 0x50]
add esp, 0xc
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], ecx
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0xbc]
mov dword [esp + 0xc0], edx
push ecx
lea edx, [esp + 0x38]
push edx
mov ecx, ebp
mov dword [esp + 0xc4], esi
call fcn.00479820
test al, al
jne 0x47b541
mov byte [esp + 0x13], al
jmp 0x47b5be
mov ecx, dword [ebp + 0x114]
mov eax, dword [ebp + 0x110]
lea esi, [ebp + 0xe8]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x48], eax
lea eax, [ecx - 1]
test ecx, ecx
jne 0x47b569
xor eax, eax
jmp 0x47b58d
lea edx, [ecx - 1]
cmp eax, edx
jb 0x47b573
lea eax, [ecx - 1]
xor ecx, ecx
test eax, eax
setg cl
push eax
dec ecx
and ecx, eax
push ecx
lea eax, [esp + 0x38]
push eax
push esi
call fcn.0047a530
add esp, 0x10
push 1
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call fcn.00479b00
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edx
push eax
mov ecx, ebp
call fcn.0047ac30
mov ecx, dword [esp + 0x44]
add dword [ebp + 0x100], ecx
adc dword [ebp + 0x104], 0
mov edx, dword [esp + 0xa8]
mov eax, dword [edx + 4]
inc dword [esp + 0x64]
mov dword [esp + 0xa8], eax
test eax, eax
jne 0x47af74
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebx
test eax, eax
je 0x47b5ef
push eax
call fcn.0049ba00
add esp, 4
mov al, byte [esp + 7]
pop ebp
add esp, 0xc0
ret 4