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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
cmp byte [eax + 2], 0
push ebx
push ebp
push esi
movzx esi, byte [eax + 0xa]
push edi
mov edi, dword [esp + 0x34]
je 0x47ab84
mov ecx, dword [esp + 0x38]
mov ebp, dword [ecx + 0x1c]
mov ebx, dword [ecx + 0x20]
mov eax, dword [ecx + 0x10]
add ebx, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
cmp ebx, 0x80
jae 0x47ab56
mov byte [esi + edi], bl
mov eax, 1
jmp 0x47ab6b
mov eax, ebx
cdq
push edx
push eax
lea eax, [esi + edi]
push eax
call fcn.004c9cb0
mov ecx, dword [esp + 0x44]
add esp, 0xc
push dword [ecx + 0xc]
movzx eax, al
push dword [ecx + 8]
add esi, eax
lea eax, [esi + edi]
push eax
call fcn.004c9cb0
add esp, 0xc
jmp 0x47abc1
mov eax, dword [esp + 0x38]
mov ebx, dword [eax + 8]
mov ebp, ebx
mov eax, dword [eax]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
cmp ebx, 0x80
jae 0x47abad
mov byte [esi + edi], bl
mov eax, 1
jmp 0x47abbe
mov eax, ebx
cdq
push edx
push eax
lea eax, [esi + edi]
push eax
call fcn.004c9cb0
add esp, 0xc
movzx eax, al
mov ecx, dword [esp + 0x30]
add esi, eax
add edi, esi
movzx eax, word [ecx + 0xe]
mov dword [esp + 0x24], eax
cmp ebx, eax
jg 0x47ac0e
lea ecx, [ebx + esi]
cmp ecx, 4
jge 0x47abe2
mov ecx, 4
mov eax, dword [esp + 0x3c]
push ebp
push dword [esp + 0x14]
push edi
mov dword [eax], ecx
call sub.MSVCRT.dll_memcpy
sub ebx, ebp
lea eax, [edi + ebp]
push ebx
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
movzx edx, word [ecx + 0x10]
mov eax, ebx
mov ecx, dword [ecx + 0x34]
sub eax, edx
mov dword [esp + 0x28], edx
xor edx, edx
mov ecx, dword [ecx + 0x28]
sub ecx, 4
div ecx
mov eax, dword [esp + 0x28]
lea ebp, [eax + edx]
cmp ebp, dword [esp + 0x24]
jle 0x47ac36
mov ebp, eax
mov eax, dword [esp + 0x3c]
lea edx, [esi + ebp]
lea ecx, [edx + 4]
mov dword [eax], ecx
mov eax, dword [esp + 0x34]
add eax, edx
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x1c], eax
xor ebx, ebx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], ebx
mov eax, dword [eax + 0x34]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
jmp 0x47ac70
mov esi, eax
cmp eax, ebp
jle 0x47ac78
mov esi, ebp
cmp ecx, esi
jl 0x47ac89
push esi
push dword [esp + 0x14]
push edi
call sub.MSVCRT.dll_memcpy
jmp 0x47aca5
test ecx, ecx
jle 0x47ac9c
push ecx
push dword [esp + 0x14]
mov esi, ecx
push edi
call sub.MSVCRT.dll_memcpy
jmp 0x47aca5
push esi
push 0
push edi
call sub.MSVCRT.dll_memset
mov eax, dword [esp + 0x20]
add esp, 0xc
sub eax, esi
mov dword [esp + 0x14], eax
test eax, eax
jle 0x47ae54
mov ecx, dword [esp + 0x18]
add edi, esi
add dword [esp + 0x10], esi
sub ecx, esi
mov dword [esp + 0x18], ecx
sub ebp, esi
jne 0x47ac70
mov esi, dword [esp + 0x34]
mov edi, ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x24], edi
cmp byte [esi + 0x11], 0
je 0x47ad3e
mov edi, dword [esi + 0x24]
mov ebp, dword [0x52e2d4]
jmp 0x47acf0
inc ebx
cmp ebx, 2
jae 0x47acfa
xor ecx, ecx
jmp 0x47ad27
mov eax, 0xcccccccd
mul dword [esi + 0x28]
lea eax, [ebx - 2]
mov esi, edx
xor edx, edx
shr esi, 2
inc esi
div esi
xor edx, edx
mov ecx, eax
mov eax, ebp
div edi
imul ecx, esi
inc eax
add ecx, 2
cmp ecx, eax
jne 0x47ad23
inc ecx
mov esi, dword [esp + 0x34]
cmp ecx, ebx
je 0x47acf0
xor edx, edx
mov eax, ebp
div edi
inc eax
cmp ebx, eax
je 0x47acf0
mov edi, dword [esp + 0x24]
mov dword [esp + 0x20], ebx
push 0
push ebx
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.0046ae30
mov ecx, dword [esp + 0x48]
add esp, 0x14
mov ebp, dword [esp + 0x30]
mov esi, eax
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x24], esi
cmp byte [ecx + 0x11], 0
je 0x47ada6
test esi, esi
jne 0x47ae37
lea eax, [esp + 0x24]
test edi, edi
push eax
setne al
add al, 3
push edi
movzx eax, al
push eax
push ebx
push ecx
call fcn.0049c080
mov esi, dword [esp + 0x38]
add esp, 0x14
test esi, esi
je 0x47adae
test ebp, ebp
je 0x47ada6
push dword [ebp + 0x48]
call fcn.004c5db0
add esp, 4
test esi, esi
jne 0x47ae37
mov ecx, dword [esp + 0x28]
mov eax, ebx
bswap eax
mov dword [ecx], eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x47ae11
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x47ae08
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004021f0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x47ae11
push edx
call fcn.004c6f10
add esp, 4
mov edx, dword [ebp + 0x38]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x28], edx
mov dword [edx], 0
mov edi, dword [ebp + 0x38]
mov ebp, dword [eax + 0x28]
add edi, 4
sub ebp, 4
jmp 0x47ac63
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x47ae4a
push dword [eax + 0x48]
call fcn.004c5db0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x47ae67
push dword [eax + 0x48]
call fcn.004c5db0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret