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

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x10], eax
xor edx, edx
push esi
push edi
mov ebx, dword [ebp + 0x14]
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov eax, dword [ebx + 0x94]
div dword [ebx + 0x98]
or byte [ebx + 0x14], 4
mov ebp, dword [ebp + 0x18]
mov edx, eax
mov esi, dword [ebx + 0x18]
lea edi, [edx - 1]
not edi
lea eax, [ebp - 1]
and edi, eax
inc edi
mov dword [esp + 0x20], edi
cmp ebp, esi
jbe 0x47cdec
sub ebp, edi
inc ebp
jmp 0x47cdfe
lea eax, [edx - 1]
add eax, edi
cmp eax, esi
jbe 0x47cdfc
mov ebp, esi
sub ebp, edi
inc ebp
jmp 0x47cdfe
mov ebp, edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
jle 0x47cfb8
mov esi, edi
lea esp, [esp]
test ecx, ecx
jne 0x47cfb8
mov eax, dword [esp + 0x28]
cmp esi, dword [eax + 0x18]
je 0x47ce8a
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x47ce8a
push esi
push eax
call fcn.0048aed0
add esp, 8
test eax, eax
je 0x47ce86
mov eax, dword [ebx + 0xd4]
push 0
push esi
push dword [eax + 0x2c]
call dword [0x506258]
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x47ce5a
mov dword [esp + 0x14], eax
jmp 0x47cee4
mov eax, dword [ecx + 4]
mov edx, dword [ebx + 0xd4]
cmp dword [eax], 0
jne 0x47ce75
push ecx
push esi
push edx
call fcn.0047fa20
add esp, 0xc
jmp 0x47ce7c
inc dword [edx + 0xc]
inc word [eax + 0x1e]
mov dword [esp + 0x14], eax
test eax, eax
je 0x47cee4
jmp 0x47cecd
mov ecx, dword [esp + 0x10]
mov eax, dword [0x5062e0]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp esi, eax
je 0x47cee8
push 0
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebx + 0xcc]
push esi
push ebx
call eax
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x47cee8
push dword [esp + 0x14]
call fcn.0047e060
mov dword [esp + 0x14], eax
add esp, 4
mov eax, dword [esp + 0x14]
test byte [eax + 0x1c], 8
je 0x47cedb
mov dword [esp + 0x18], 1
push eax
call fcn.004aa360
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
inc esi
inc eax
mov dword [esp + 0x1c], eax
cmp eax, ebp
jl 0x47ce10
test ecx, ecx
jne 0x47cfb8
mov eax, dword [esp + 0x18]
test eax, eax
je 0x47cfb8
mov edi, edi
mov eax, dword [ebx + 0xd4]
push 0
push edi
push dword [eax + 0x2c]
call dword [0x506258]
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x47cfa8
mov eax, dword [ecx + 4]
mov edx, dword [ebx + 0xd4]
cmp dword [eax], 0
jne 0x47cf46
push ecx
push edi
push edx
call fcn.0047fa20
add esp, 0xc
jmp 0x47cf4d
inc dword [edx + 0xc]
inc word [eax + 0x1e]
test eax, eax
je 0x47cfa8
or word [eax + 0x1c], 8
test byte [eax + 0x1c], 0x20
je 0x47cf9f
mov edx, dword [eax + 0x14]
dec dword [edx + 0x78]
mov ecx, dword [edx + 0x88]
mov dword [eax + 0x10], ecx
mov esi, dword [edx + 0x3c]
mov dword [edx + 0x88], eax
push dword [eax + 4]
mov ecx, dword [eax + 0x18]
mov eax, dword [edx + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.0040b170
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [esp + 0x30]
add esp, 0x10
jmp 0x47cfa8
push eax
call fcn.004ab270
add esp, 4
inc edi
mov dword [esp + 0x20], edi
dec ebp
jne 0x47cf10
mov ecx, dword [esp + 0x10]
and byte [ebx + 0x14], 0xfb
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret