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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x50]
cmp eax, dword [ecx + 8]
jbe 0x4c5e30
sub esp, 0xd0
mov edx, dword [esp + 0xf8]
test edx, edx
je 0x4c5da6
mov ecx, dword [esp + 0xfc]
lea edx, [ecx - 1]
mov ebx, dword [esp + 0xf8]
mov ebp, dword [esp + 0xe4]
mov esi, dword [esp + 0xdc]
mov edi, dword [esp + 0xd4]
mov eax, dword [esp + 0xd8]
mov dword [esp + 0xbc], eax
xor eax, eax
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xbc]
jmp 0x4c59b8
mov esi, dword [esp + 0x64]
mov edx, ebx
lea ebx, [0x5fcb80]
test edx, edx
jle 0x4c57aa
lea ebx, [edx - 1]
cmp ebx, ecx
jae 0x4c5e1c
lea esi, [edx + edx*4]
lea esi, [edi + esi*4 - 8]
cmp dword [esi], ebp
jg 0x4c5784
cmp edx, ecx
jae 0x4c5e15
lea ebx, [edx + edx*4]
lea ebp, [edi + ebx*4 + 0xc]
mov esi, dword [esp + 0x64]
cmp dword [ebp], esi
jge 0x4c5a56
xor ebx, ebx
test bl, bl
je 0x4c57d5
dec edx
test edx, edx
jl 0x4c5dfd
cmp ecx, edx
jbe 0x4c5df6
mov dword [esp + 0x70], edx
lea ecx, [edx + edx*4]
mov dword [esp + 0x80], ecx
mov ebx, dword [edi + ecx*4]
mov ebp, dword [edi + ecx*4 + 4]
mov esi, dword [edi + ecx*4 + 8]
mov edx, dword [esp + 0xcc]
mov dword [esp], edx
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x84]
mov dword [esp + 8], ecx
mov edi, dword [esp + 0xc4]
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x58]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], esi
call fcn.004c0220
mov eax, dword [esp + 0x30]
mov dword [esp + 0xd4], eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xd8], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x80]
mov eax, dword [esp + 0xf8]
mov edi, dword [eax + edi*4 + 0x10]
mov ecx, dword [esp + 0x88]
sub ecx, edi
mov edi, dword [esp + 0x88]
cmp ecx, edi
ja 0x4c5ded
mov dword [esp + 0xe4], ecx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], esi
mov dword [esp + 0xdc], edx
mov dword [esp + 0xc8], ebx
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
mov edx, dword [esp + 0xe8]
sub edx, ecx
mov dword [esp + 0x80], edx
neg edx
sar edx, 0x1f
and edx, ecx
mov ebx, dword [esp + 0xe0]
add edx, ebx
mov dword [esp + 0xc], edx
sub edi, ecx
mov dword [esp + 0x10], edi
mov edx, dword [esp + 0x80]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0xec]
mov dword [esp + 0x18], edx
mov edi, dword [esp + 0xf0]
mov dword [esp + 0x1c], edi
mov ebx, dword [esp + 0xf4]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0x70]
mov dword [esp + 0x28], edi
mov ebx, dword [esp + 0x100]
mov dword [esp + 0x2c], ebx
call fcn.004c5700
mov eax, dword [esp + 0xfc]
mov ecx, dword [esp + 0xf8]
mov edx, dword [esp + 0xe4]
mov ebx, dword [esp + 0xc8]
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x70]
mov ecx, eax
mov ebx, dword [esp + 0xf8]
mov eax, dword [esp + 0xd8]
mov edi, dword [esp + 0xd4]
mov esi, dword [esp + 0xdc]
mov edx, dword [esp + 0x70]
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0xac], ebx
mov ebx, dword [esp + 0xc8]
mov dword [esp + 0xc4], ebx
mov ebp, dword [esp + 0xe4]
mov ecx, dword [esp + 0xb4]
mov ebx, dword [esp + 0xf8]
cmp dword [0x5f80f8], eax
jge 0x4c5ae6
mov dword [esp + 0xcc], edi
mov dword [esp + 0x88], ebp
mov dword [esp + 0x84], esi
lea ebp, [eax - 1]
test ebp, ebp
jl 0x4c5ad9
mov esi, dword [edi + eax*4 - 4]
nop
cmp esi, 0x10000
jb 0x4c5ac0
shr esi, 0x10
mov dword [esp + 0x9c], eax
mov eax, 0x10
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x9c]
cmp esi, 0x100
jb 0x4c5ab7
shr esi, 8
mov edi, dword [esp + 0x60]
add edi, 8
cmp esi, 0x100
jae 0x4c5e23
shl ebp, 5
lea ebx, [0x5fcb80]
movzx esi, byte [ebx + esi]
add esi, edi
add ebp, esi
mov dword [esp + 0x64], ebp
mov esi, ebp
sar ebp, 1
mov edi, dword [esp + 0xf8]
jmp 0x4c5790
mov dword [esp + 0x7c], edx
mov dword [esp + 0x78], eax
mov ecx, dword [edi + ebx*4]
mov edx, dword [edi + ebx*4 + 4]
mov ebx, dword [edi + ebx*4 + 8]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x84]
mov dword [esp + 0x14], edx
call fcn.004bd490
mov eax, dword [esp + 0x18]
test eax, eax
setge bl
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0xfc]
mov edx, dword [esp + 0x7c]
mov edi, dword [esp + 0xf8]
jmp 0x4c57c8
mov edi, dword [esp + 0x60]
jmp 0x4c5a25
mov dword [esp + 0xa4], eax
xor eax, eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xa4]
jmp 0x4c5a0f
lea ebx, [0x5fcb80]
xor ebp, ebp
jmp 0x4c5a42
mov dword [esp + 0xe4], ebp
mov edx, dword [esp + 0xec]
cmp edx, 0xa
jne 0x4c5c43
mov ecx, ebp
jmp 0x4c5b86
add ebx, 0x30
mov byte [ebp + esi - 1], bl
mov ebx, dword [esp + 0x68]
inc ebx
mov ebp, dword [esp + 0xf0]
mov edx, dword [esp + 0xdc]
mov dword [esp + 0x68], ebx
mov ebx, eax
mov eax, dword [esp + 0xd4]
mov edx, dword [esp + 0x68]
cmp ebp, edx
jle 0x4c5c10
mov ebp, dword [esp + 0x88]
test ebp, ebp
jle 0x4c5b6f
lea edx, [ebp - 1]
mov dword [esp + 0x88], edx
mov eax, 0xcccccccd
mul ebx
shr edx, 3
mov eax, edx
lea edx, [edx + edx*4]
shl edx, 1
sub ebx, edx
mov edx, dword [esp + 0x88]
cmp edx, edi
jb 0x4c5b04
jmp 0x4c5de4
mov eax, ecx
mov esi, dword [esp + 0xdc]
mov edi, dword [esp + 0xd4]
mov ecx, dword [esp + 0xe4]
test eax, eax
jle 0x4c5c1c
mov dword [esp + 0x74], ebp
mov dword [esp], edi
mov dword [esp + 4], eax
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0xf4]
mov dword [esp + 0x18], eax
call fcn.004bffb0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xd4], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0xdc], edx
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0xf0]
mov esi, dword [esp + 0xe0]
mov edi, dword [esp + 0xe4]
mov dword [esp + 0x94], eax
xor eax, eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x94]
jmp 0x4c5b2b
mov ebp, dword [esp + 0x88]
jmp 0x4c5b6f
mov edx, dword [esp + 0xe0]
jmp 0x4c5c2c
mov byte [ebp + edx - 1], 0x30
mov ebp, eax
test ebp, ebp
jle 0x4c5c3c
lea eax, [ebp - 1]
cmp eax, ecx
jb 0x4c5c25
jmp 0x4c5dc7
add esp, 0xd0
ret
mov ecx, ebp
jmp 0x4c5d09
mov byte [esp + 0x4b], dl
mov edx, dword [esp + 0xe0]
movzx ecx, byte [esp + 0x4b]
mov byte [edi + edx - 1], cl
mov edx, dword [esp + 0x6c]
inc edx
mov dword [esp + 0x6c], edx
mov edi, eax
mov eax, dword [esp + 0x5c]
xor edx, edx
div ebp
mov edx, dword [esp + 0xf0]
mov ecx, dword [esp + 0xd8]
mov edx, dword [esp + 0xdc]
mov ebx, eax
mov dword [esp + 0x88], edi
mov eax, dword [esp + 0xd4]
mov edi, dword [esp + 0xf0]
mov edx, dword [esp + 0x6c]
cmp edi, edx
jle 0x4c5d9a
mov edi, dword [esp + 0x88]
test edi, edi
jle 0x4c5ce9
test ebp, ebp
je 0x4c5ddf
mov eax, ebx
xor edx, edx
div ebp
cmp edx, 0x3e
jae 0x4c5dd3
mov dword [esp + 0x5c], ebx
lea eax, [edi - 1]
lea ebx, [0x540b47]
movzx edx, byte [ebx + edx]
cmp eax, esi
jb 0x4c5c4a
jmp 0x4c5dcc
mov ecx, esi
mov edx, ebp
mov eax, dword [esp + 0xd8]
mov esi, dword [esp + 0xdc]
mov edi, dword [esp + 0xd4]
mov ebp, dword [esp + 0x88]
test eax, eax
jle 0x4c5c1c
mov dword [esp + 0x74], ebp
mov dword [esp], edi
mov dword [esp + 4], eax
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0xf4]
mov dword [esp + 0x18], eax
call fcn.004bffb0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xd4], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xd8], ecx
mov edx, dword [esp + 0x24]
mov dword [esp + 0xdc], edx
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0xec]
mov esi, dword [esp + 0xe4]
mov edi, dword [esp + 0xf0]
mov dword [esp + 0x8c], eax
xor eax, eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x8c]
jmp 0x4c5c9d
mov edi, dword [esp + 0x88]
jmp 0x4c5ce9
mov ebp, dword [esp + 0xe4]
mov eax, dword [esp + 0xd8]
mov esi, dword [esp + 0xdc]
mov edi, dword [esp + 0xd4]
jmp 0x4c5ae6
call fcn.0045a700
mov ecx, esi
call fcn.0045a700
mov eax, edx
mov ecx, 0x3e
call fcn.0045a710
call fcn.0042f3b0
mov eax, edx
mov ecx, edi
call fcn.0045a700
mov eax, ecx
mov ecx, edi
call fcn.0045a760
mov eax, edx
call fcn.0045a700
lea eax, [0x51b2e0]
mov dword [esp], eax
lea eax, [0x567a8c]
mov dword [esp + 4], eax
call fcn.004308c0
mov eax, edx
call fcn.0045a700
mov eax, ebx
call fcn.0045a700
mov eax, esi
mov ecx, 0x100
call fcn.0045a710
nop
call fcn.00459120
jmp fcn.004c5700