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

Disassembly:
sub esp, 0x30
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
push esi
xor eax, eax
xor ebx, ebx
mov cl, byte [ebp + 3]
mov esi, dword [ebp + 0x3c]
test cl, cl
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x44], eax
jne 0x4c47ce
mov ebx, 4
mov cl, byte [ebp + 4]
mov edi, dword [esp + 0x48]
test cl, cl
je 0x4c47f6
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
add eax, ecx
cdq
push edx
lea edx, [ebx + edi]
push eax
push edx
call fcn.004c3680
add esp, 0xc
add ebx, eax
jmp 0x4c47fe
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
push eax
lea edx, [ebx + edi]
push ecx
push edx
call fcn.004c3680
add ebx, eax
lea eax, [esp + 0x28]
push eax
push edi
push ebp
call fcn.004b8270
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
add esp, 0x18
lea edx, [eax + ecx]
mov cl, byte [ebp + 2]
test cl, cl
mov dword [esp + 0x48], edx
je 0x4c4850
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x4c], ecx
mov ecx, eax
mov dword [esp + 0x60], ecx
jmp 0x4c4889
mov eax, dword [esp + 0x54]
test eax, eax
jg 0x4c4a5d
mov eax, dword [esp + 0x50]
jl 0x4c486d
cmp eax, 0x7fffffff
ja 0x4c4a5d
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x4c4a5d
add edx, eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x60], eax
mov ecx, eax
mov eax, dword [esp + 0x3a]
mov ebp, dword [esp + 0x64]
and eax, 0xffff
add ebx, edi
mov dword [ebp], eax
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x36]
and eax, 0xffff
and ebp, 0xffff
add eax, edi
test edx, edx
mov dword [esp + 0x64], eax
jle 0x4c4a2f
jmp 0x4c48ca
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x48]
test ebp, ebp
jne 0x4c49b1
mov al, byte [esi + 0x13]
mov ecx, dword [esp + 0x44]
test al, al
mov edi, ecx
je 0x4c4909
inc ecx
push ecx
push esi
mov dword [esp + 0x4c], ecx
call fcn.004b79f0
mov ecx, dword [esp + 0x4c]
add esp, 8
cmp eax, ecx
je 0x4c48df
mov eax, dword [0x5bdf64]
xor ebx, ebx
mov bx, word [esi + 0x16]
cdq
idiv ebx
inc eax
cmp ecx, eax
je 0x4c48df
push 0
push ecx
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x18]
push ecx
push edx
push esi
call fcn.004b8a80
mov ebx, eax
mov al, byte [esi + 0x13]
add esp, 0x14
test al, al
je 0x4c495b
test ebx, ebx
jne 0x4c4a46
mov ecx, dword [esp + 0x44]
push edi
test edi, edi
setne al
add eax, 3
push eax
push ecx
push esi
call fcn.004b8050
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4c4963
mov edx, dword [esp + 0x10]
push edx
call fcn.004b7540
add esp, 4
test ebx, ebx
jne 0x4c4a46
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x64]
push eax
push ecx
call fcn.004b6520
mov edx, dword [esp + 0x1c]
push edx
call fcn.004b7540
mov eax, dword [esp + 0x1c]
push 0
mov dword [esp + 0x24], eax
mov eax, dword [eax + 0x40]
push eax
mov dword [esp + 0x78], eax
call fcn.004b6520
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x5c]
xor ebp, ebp
mov ebx, dword [eax + 0x40]
mov bp, word [esi + 0x18]
add esp, 0x14
add ebx, 4
sub ebp, 4
cmp edx, ebp
jle 0x4c49b7
mov edx, ebp
test ecx, ecx
jle 0x4c49d9
cmp edx, ecx
jle 0x4c49c1
mov edx, ecx
mov esi, dword [esp + 0x4c]
mov ecx, edx
mov eax, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4c49ed
mov ecx, edx
xor eax, eax
mov esi, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
add eax, edx
sub esi, edx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x60]
sub eax, edx
add ebx, edx
sub ebp, edx
mov dword [esp + 0x48], esi
test eax, eax
mov dword [esp + 0x60], eax
jne 0x4c4a23
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x4c], edx
mov eax, dword [esp + 0x48]
test eax, eax
jg 0x4c48be
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004b7540
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov eax, dword [esp + 0x14]
push eax
call fcn.004b7540
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
pop edi
pop esi
pop ebp
mov eax, 0xb
pop ebx
add esp, 0x30
ret