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

Disassembly:
sub esp, 0x64
push ebx
mov ebx, dword [esp + 0x6c]
push ebp
push esi
push edi
mov eax, dword [ebx + 0x20]
lea ecx, [ebx + 0x34]
mov dword [esp + 0x24], 0
mov esi, 0x2c
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0
mov edi, dword [eax]
mov edx, edi
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4c5cb5
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4c5ca2
jmp 0x4c5cbd
mov ebp, dword [edi + 0x10]
inc ebp
mov dword [esp + 0x1c], ebp
push ebx
call fcn.004d63d0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4c6219
mov edi, dword [ebx + 0x44]
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x18], edi
test edi, edi
jne 0x4c5dbf
mov ecx, dword [ebx + 0x70]
mov eax, ebp
mov dword [esp + 0x54], 0x82067f37
mov dword [esp + 0x58], 0x18e22d00
bswap eax
mov dword [esp + 0x5c], eax
mov eax, ecx
bswap eax
mov dword [esp + 0x60], eax
test ecx, ecx
jne 0x4c5d18
lea eax, [ebx + 0x54]
push eax
push 8
call fcn.00444350
add esp, 8
mov eax, dword [ebx + 0x54]
lea ecx, [esp + 0x54]
mov dword [esp + 0x64], eax
xor edx, edx
mov eax, dword [ebx + 0x58]
xor esi, esi
mov dword [esp + 0x68], eax
mov edi, edi
mov eax, dword [ecx]
add eax, edx
add esi, eax
mov eax, dword [ecx + 4]
add eax, esi
add ecx, 8
add edx, eax
lea eax, [esp + 0x6c]
cmp ecx, eax
jb 0x4c5d30
mov eax, esi
mov dword [ebx + 0x24], ebp
bswap eax
mov dword [esp + 0x6c], eax
mov eax, edx
bswap eax
mov byte [ebx + 0x41], 0
mov dword [ebx + 0x50], edx
lea edx, [esp + 0x54]
mov dword [ebx + 0x4c], esi
mov dword [esp + 0x70], eax
mov eax, dword [ebx + 8]
push 0
push 0
mov byte [ebx + 0x2f], 1
mov ecx, dword [eax]
push 0x20
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4c6217
cmp byte [ebx + 0x30], al
je 0x4c5dbf
mov ecx, dword [esp + 0x8c]
mov edx, dword [ebx + 8]
sar ecx, 2
and ecx, 3
je 0x4c5dbd
mov eax, dword [edx]
push ecx
push edx
mov eax, dword [eax + 0x14]
call eax
mov esi, eax
add esp, 8
test esi, esi
je 0x4c5dbf
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
xor esi, esi
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
lea eax, [ebp + 0x18]
mov dword [esp + 0x2c], eax
cdq
mov dword [esp + 0x4c], ecx
mov ecx, eax
mov eax, edx
mov dword [esp + 0x3c], ebx
push eax
push ecx
push 0
push edi
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x60], ebp
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
call fcn.0040b170
mov ebp, eax
mov eax, edx
add ebp, 0x20
mov dword [esp + 0x20], ebp
adc eax, 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x80]
mov edi, eax
test eax, eax
mov eax, dword [esp + 0x88]
je 0x4c5f81
cmp dword [esp + 0x1c], 0
je 0x4c5edd
cmp dword [edi + 0x10], 0
jne 0x4c5e4e
test eax, eax
jne 0x4c5edd
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
push dword [edi + 0x18]
push ebx
call fcn.004c5ad0
mov esi, dword [esp + 0x34]
add esp, 0xc
cmp esi, dword [esp + 0x1c]
jb 0x4c5ed6
push dword [esp + 0x30]
lea eax, [esi - 1]
push dword [esp + 0x38]
push 0
push eax
call fcn.0040b170
mov ecx, dword [ebx + 0x68]
add eax, 0x38
mov dword [esp + 0x28], eax
adc edx, 0
test ecx, ecx
je 0x4c5e99
cmp esi, ecx
jae 0x4c5e9c
mov dword [ebx + 0x68], esi
mov eax, dword [ebx + 8]
push edx
push dword [esp + 0x2c]
push dword [esp + 0x84]
mov ecx, dword [eax]
push dword [edi + 4]
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4c6217
mov ecx, 0xffbf
and word [edi + 0x1c], cx
mov edi, dword [edi + 0x10]
test edi, edi
jmp 0x4c5e28
mov eax, dword [esp + 0x88]
inc dword [esp + 0x18]
test eax, eax
je 0x4c5ef4
cmp dword [edi + 0x10], 0
jne 0x4c5ef4
mov eax, dword [esp + 0x84]
jmp 0x4c5ef6
xor eax, eax
mov ecx, dword [edi + 4]
lea edx, [esp + 0x54]
push edx
push ecx
push eax
push dword [edi + 0x18]
mov dword [esp + 0x38], ecx
push ebx
call fcn.004d50e0
push dword [esp + 0x24]
lea eax, [esp + 0x6c]
push ebp
push 0x18
push eax
lea eax, [esp + 0x60]
push eax
call fcn.004d6a10
mov esi, eax
add esp, 0x28
test esi, esi
jne 0x4c6217
mov eax, dword [esp + 0x10]
mov ecx, ebp
add ecx, 0x18
adc eax, esi
push eax
push ecx
push dword [esp + 0x84]
lea eax, [esp + 0x48]
push dword [esp + 0x34]
push eax
call fcn.004d6a10
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4c6217
mov eax, dword [esp + 0x2c]
cdq
add ebp, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], ebp
adc dword [esp + 0x10], edx
or word [edi + 0x1c], 0x40
mov edi, dword [edi + 0x10]
test edi, edi
jmp 0x4c5e28
test eax, eax
je 0x4c616d
cmp dword [ebx + 0x68], 0
je 0x4c5fa6
push dword [esp + 0x18]
push ebx
call fcn.004d6490
mov esi, eax
add esp, 8
test esi, esi
jne 0x4c6217
and dword [esp + 0x8c], 3
je 0x4c611c
cmp byte [ebx + 0x31], 0
je 0x4c6104
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x4c5fea
push ecx
call eax
add esp, 4
cmp eax, 0x20
jge 0x4c5fdc
mov eax, 0x200
jmp 0x4c5fef
cmp eax, 0x10000
jle 0x4c5fef
mov eax, 0x10000
jmp 0x4c5fef
mov eax, 0x1000
cdq
mov ebp, eax
mov ebx, edx
mov edi, ebp
mov ecx, ebx
add edi, dword [esp + 0x20]
push ebx
adc ecx, dword [esp + 0x14]
sub edi, 1
push ebp
sbb ecx, 0
push ecx
push edi
call fcn.0040b1b0
push ebx
push ebp
push edx
push eax
call fcn.0040b170
mov ebp, dword [esp + 0x20]
mov ecx, eax
mov edi, dword [esp + 0x10]
mov eax, edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
cmp ecx, ebp
jne 0x4c603c
mov dword [esp + 0x28], 1
cmp eax, edi
je 0x4c6044
mov dword [esp + 0x28], 0
cmp edi, eax
jg 0x4c60f9
jl 0x4c6056
cmp ebp, ecx
jae 0x4c60f9
mov ebx, dword [esp + 0x78]
lea ebx, [ebx]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x54]
push edx
mov eax, dword [ecx + 4]
push eax
push dword [esp + 0x8c]
mov dword [esp + 0x84], eax
push dword [ecx + 0x18]
push ebx
call fcn.004d50e0
push edi
push ebp
push 0x18
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.004d6a10
mov esi, eax
add esp, 0x28
test esi, esi
jne 0x4c6217
mov ecx, ebp
mov eax, edi
add ecx, 0x18
adc eax, esi
push eax
push ecx
push dword [esp + 0x84]
lea eax, [esp + 0x48]
push dword [esp + 0x84]
push eax
call fcn.004d6a10
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4c6217
mov eax, dword [esp + 0x2c]
cdq
add ebp, eax
adc edi, edx
inc dword [esp + 0x14]
cmp edi, dword [esp + 0x48]
jl 0x4c6060
jg 0x4c60fd
cmp ebp, dword [esp + 0x44]
jb 0x4c6060
jmp 0x4c60fd
mov ebx, dword [esp + 0x78]
cmp dword [esp + 0x28], 0
je 0x4c611c
mov ecx, dword [esp + 0x38]
push dword [esp + 0x8c]
push ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
add esp, 8
mov esi, eax
cmp byte [ebx + 0x2f], 0
je 0x4c616d
mov ebp, dword [ebx + 0x14]
mov edi, dword [ebx + 0x10]
test ebp, ebp
jl 0x4c616d
jg 0x4c6132
test edi, edi
jb 0x4c616d
push dword [esp + 0x30]
mov eax, dword [esp + 0x18]
push dword [esp + 0x38]
add eax, dword [esp + 0x20]
push 0
push eax
call fcn.0040b170
add eax, 0x20
adc edx, 0
cmp edx, ebp
jl 0x4c615e
jg 0x4c615a
cmp eax, edi
jbe 0x4c615e
mov edi, eax
mov ebp, edx
push ebp
push edi
push ebx
call fcn.004d5f60
add esp, 0xc
mov byte [ebx + 0x2f], 0
mov ebp, dword [esp + 0x80]
mov edi, dword [ebx + 0x44]
test ebp, ebp
je 0x4c61a5
jmp 0x4c6180
test esi, esi
jne 0x4c6217
test byte [ebp + 0x1c], 0x40
je 0x4c619e
push dword [ebp + 0x18]
inc edi
push edi
push ebx
call fcn.004d5230
add esp, 0xc
mov esi, eax
mov ebp, dword [ebp + 0x10]
test ebp, ebp
jne 0x4c6180
test esi, esi
jne 0x4c6217
mov ebp, dword [esp + 0x24]
lea ecx, [ecx]
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x4c61d9
push dword [ebp + 0x18]
inc edi
dec eax
push edi
push ebx
mov dword [esp + 0x20], eax
call fcn.004d5230
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4c61b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
test esi, esi
jne 0x4c6217
mov ecx, dword [esp + 0x7c]
mov eax, ecx
sar eax, 0x10
and ecx, 0xff00
or eax, ecx
mov dword [ebx + 0x44], edi
mov word [ebx + 0x42], ax
cmp dword [esp + 0x88], esi
je 0x4c6217
mov eax, dword [esp + 0x84]
inc dword [ebx + 0x3c]
push ebx
mov dword [ebx + 0x48], eax
call fcn.004d5bc0
add esp, 4
mov dword [ebx + 0xc], edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret