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

Disassembly:
mov eax, dword [esp + 0x40]
cmp dword [eax + 0x30], 0
je 0x4800ae
mov edx, dword [esp]
mov ecx, dword [edx + 0x98]
cmp ecx, dword [esp + 0xc]
jae 0x47fa30
mov eax, dword [esp + 0x40]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 0x20]
add ecx, ecx
mov dword [esp + 0x24], ecx
and al, 0x24
xor eax, eax
mov dword [esp + 0x4c], eax
jmp 0x47fa68
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 0x20]
mov edx, dword [esp + 0x40]
mov ecx, dword [edx + 0xc]
xor edx, edx
div ecx
mov dword [esp + 0x20], edx
cmp dword [esp + 0x20], 0
jne 0x47fa58
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x20]
mov dword [esp + 0x24], edx
mov dword [esp + 0x4c], 1
mov ecx, dword [esp]
cmp dword [ecx + 0x98], 0
jbe 0x47fac9
mov eax, dword [esp + 0x40]
mov edx, dword [eax + 0xc]
add dword [esp + 0x24], edx
mov ecx, dword [esp + 0x24]
push ecx
push 0
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x48]
mov ecx, dword [eax + 0x98]
add byte [eax], al
add byte [ebx + 0x49102444], cl
imul ecx, dword [edx + 0xc]
mov edx, dword [esp + 0x20]
mov edx, dword [eax + edx*4 + 0x48]
mov eax, dword [esp + 8]
mov ebx, dword [eax + 4]
call dword [ebx + 0x20]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x40]
mov edx, dword [eax + 0xc]
shl edx, 2
add dword [esp + 0x28], edx
xor ecx, ecx
mov dword [esp + 0x48], ecx
jmp 0x47faf4
mov eax, dword [esp + 0x24]
push eax
push 0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov ebx, dword [eax + 4]
mov edx, dword [edx + ecx*4 + 0x48]
xor ecx, ecx
call dword [ebx + 0x20]
mov dword [esp + 0x28], eax
mov dword [esp + 0x48], 1
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 8]
shl ecx, 3
mov edx, dword [eax + 0x70]
lea ecx, [ecx + ecx*2]
add edx, ecx
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x40]
mov edx, dword [eax + 0x4c]
mov dword [esp + 0x54], edx
mov ecx, dword [esp + 0x54]
movzx eax, word [ecx]
mov dword [esp + 0x58], eax
mov edx, dword [esp + 0x54]
movzx ecx, word [edx + 2]
mov dword [esp + 0x5c], ecx
mov eax, dword [esp + 0x54]
movzx edx, word [eax + 0x10]
push eax
adc byte [ecx - 0x749bdbac], cl
dec esp
and al, 0x54
movzx eax, word [ecx + 0x20]
mov dword [esp + 0x6c], eax
mov edx, dword [esp + 0x54]
movzx ecx, word [edx + 0x12]
mov dword [esp + 0x68], ecx
mov eax, dword [esp + 0x54]
movzx edx, word [eax + 4]
mov dword [esp + 0x60], edx
mov ecx, dword [esp]
mov edx, dword [esp + 0x94]
mov ecx, dword [edx]
mov dword [esp + 0x2c], ecx
cmp dword [esp + 0x48], 0
invalid
je 0x47fbc7
cmp dword [esp + 0x1c], 0
jne 0x47fbc7
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
jmp 0x47fbd5
mov edx, dword [esp + 0x94]
mov ecx, dword [edx - 4]
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x4c], 0
je 0x47fbf1
mov eax, dword [esp + 0x20]
dec eax
cmp eax, dword [esp + 0x1c]
jne 0x47fbf1
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x34], edx
jmp 0x47fbff
mov ecx, dword [esp + 0x94]
mov eax, dword [ecx + 4]
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x30]
movsx ecx, word [edx]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x70], ecx
mov eax, dword [esp + 0x2c]
movsx edx, word [eax]
mov dword [esp + 0x80], edx
mov dword [esp + 0x7c], edx
mov eax, dword [esp + 0x34]
mov esi, edx
movsx edx, word [eax]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x88], edx
mov dword [esp + 0x84], edx
xor eax, eax
mov dword [esp + 0x3c], eax
xor edx, edx
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 0x1c]
dec eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x14]
ja 0x480086
lea edx, [esp + 0x98]
mov ecx, 1
mov eax, dword [esp + 0x2c]
mov eax, dword [esp + 0x80]
mov dword [esp + 0x7c], eax
mov edx, dword [esp + 0x88]
mov dword [esp + 0x84], edx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x88], ecx
add dword [esp + 0x2c], 0x80
add dword [esp + 0x30], 0x80
add dword [esp + 0x34], 0x80
mov eax, dword [esp + 0x40]
mov edx, dword [eax + 0x24]
add dword [esp + 0x3c], edx
inc dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x14]
jbe 0x47fc68
invalid
mov eax, dword [esp + 0x40]
mov edx, dword [eax + 0x24]
shl edx, 2
add dword [esp + 0x38], edx
inc dword [esp + 0x1c]
add dword [esp + 0x94], 4
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x20]
dec esp
and al, 0x20
jl 0x47fba2
inc dword [esp + 0x18]
add dword [esp + 0x40], 0x54
mov eax, dword [esp]
mov edx, dword [eax + 0x20]
cmp edx, dword [esp + 0x18]
jg 0x47f9f6
invalid
mov ecx, dword [esp]
inc dword [ecx + 0x98]
mov eax, dword [ecx + 0x98]
mov edx, dword [esp]
cmp eax, dword [edx + 0x138]
jae 0x4800e8
mov eax, 3
jmp 0x4800ed
mov eax, 4
add esp, 0x118
pop esi
pop ebx
ret