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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
mov ebx, eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
lea esi, [esp + 0x40]
mov edx, esi
call fcn.004c75f0
mov ecx, edx
not ecx
xor eax, 0xffffff80
or ecx, eax
je 0x4c7e35
test edx, edx
js 0x4c7e2b
mov edx, dword [esp + 0x38]
mov dword [esp], edx
call fcn.004ce990
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
call fcn.004ce4d0
mov dword [ebx + 0x58], 2
lea edx, [ebx + 0x78]
mov dword [esp + 0x34], edx
lea esi, [esi]
mov dword [esp], esi
call fcn.004e5ed0
test eax, eax
je 0x4c7ced
mov eax, dword [esp + 0x90]
test eax, eax
je 0x4c7a73
mov ecx, dword [esp + 0x94]
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x90]
mov edi, dword [ecx]
mov dword [esp], esi
call fcn.004e5fc0
test edi, edi
je 0x4c7a1e
test ebp, ebp
je 0x4c7a1e
cmp eax, dword [edi]
je 0x4c7c40
lea ecx, [ebp - 1]
xor edx, edx
jmp 0x4c7a1a
inc edx
cmp eax, dword [edi + edx*4]
je 0x4c7c40
cmp edx, ecx
jne 0x4c7a10
mov dword [esp], esi
call fcn.004e5fc0
mov edi, eax
mov ecx, dword [esp + 0x94]
mov ecx, dword [ecx]
mov edx, ecx
inc edx
mov ecx, dword [esp + 0x94]
mov dword [ecx], edx
mov ecx, dword [esp + 0x90]
mov eax, dword [ecx]
test eax, eax
je 0x4c7dc0
shl edx, 2
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0062b738
mov ecx, dword [esp + 0x90]
mov dword [ecx], eax
mov ecx, dword [esp + 0x94]
mov edx, dword [ecx]
mov dword [eax + edx*4 - 4], edi
cmp dword [ebx + 0x58], 2
jg 0x4c7ad0
mov dword [esp], esi
call fcn.004e5fc0
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x34]
mov dword [esp], ecx
call fcn.004e7650
mov dword [esp + 4], esi
mov edx, dword [esp + 0x34]
mov dword [esp], edx
call fcn.004e70a0
lea ecx, [esp + 0x50]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x34]
mov dword [esp], edx
call fcn.004e7700
test eax, eax
jle 0x4c7ad0
lea ecx, [esp + 0x50]
mov dword [esp], ecx
call fcn.004cebd0
test eax, eax
jne 0x4c7dda
lea esi, [esi]
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
add dword [esp + 0x20], 0x10000
adc dword [esp + 0x24], 0
lea edi, [ebx + 0x18]
mov ebp, dword [esp + 0x24]
or ebp, dword [esp + 0x20]
lea esi, [esi]
lea edi, [edi]
cmp dword [esp + 0x24], 0
jl 0x4c7b60
jle 0x4c7b50
mov ecx, dword [esp + 0x24]
cmp ecx, dword [ebx + 0xc]
jg 0x4c7b60
jge 0x4c7c10
mov eax, 0xffffff7c
lea esi, [esi]
mov edx, dword [esp + 0x38]
mov dword [esp], edx
mov dword [esp + 0x1c], eax
call fcn.004cea10
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
call fcn.004ce8a0
mov dword [ebx + 0x58], 2
mov eax, dword [esp + 0x1c]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esp + 0x20], 0
ja 0x4c7b09
mov esi, esi
lea edi, [edi]
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.004e6e70
cmp eax, 0
jl 0x4c7be0
jne 0x4c7c80
test ebp, ebp
je 0x4c7b18
call fcn.0062b7b0
mov dword [eax], 0
mov eax, dword [ebx + 0x2c0]
test eax, eax
je 0x4c7c01
mov eax, dword [ebx]
test eax, eax
je 0x4c7b18
mov dword [esp + 4], 0x800
mov dword [esp], edi
call fcn.004e6d70
mov edx, dword [ebx]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x800
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [ebx + 0x2c0]
cmp eax, 0
jle 0x4c7bf0
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004e6e40
jmp 0x4c7b00
cdq
sub dword [ebx + 8], eax
sbb dword [ebx + 0xc], edx
jmp 0x4c7b00
jne 0x4c7c30
call fcn.0062b7b0
mov ecx, dword [eax]
test ecx, ecx
je 0x4c7b18
mov eax, 0xffffff80
jmp 0x4c7b20
mov eax, dword [esp + 0x20]
cmp eax, dword [ebx + 8]
jbe 0x4c7b18
jmp 0x4c7b60
jge 0x4c7b00
jmp 0x4c7c01
mov ecx, dword [esp + 0x90]
mov eax, dword [ecx]
test eax, eax
je 0x4c7c55
mov dword [esp], eax
call fcn.0062b658
mov ecx, dword [esp + 0x90]
mov dword [ecx], 0
mov ecx, dword [esp + 0x94]
mov dword [ecx], 0
mov eax, 0xffffff7b
jmp 0x4c7b20
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
cdq
add eax, dword [esp + 0x20]
adc edx, dword [esp + 0x24]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov edi, dword [esp + 0x24]
not edi
mov eax, dword [esp + 0x20]
xor eax, 0xffffff80
or edi, eax
je 0x4c7c01
mov edx, dword [esp + 0x24]
test edx, edx
js 0x4c7b18
cmp dword [ebx + 0x58], 3
jne 0x4c79c0
mov edi, dword [ebx + 0x1c8]
mov dword [esp], esi
call fcn.004e5fc0
cmp edi, eax
jne 0x4c79c0
mov dword [esp + 4], esi
lea ecx, [ebx + 0x78]
mov dword [esp], ecx
call fcn.004e70a0
cmp dword [ebx + 0x58], 3
jne 0x4c7b18
mov dword [esp + 0x2c], 0
xor edi, edi
lea ecx, [ebx + 0x78]
mov dword [esp + 0x20], ecx
lea ebp, [esp + 0x50]
jmp 0x4c7d48
inc eax
je 0x4c7da8
mov dword [esp + 8], ebp
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x38]
mov dword [esp], edx
call fcn.004cece0
test eax, eax
jne 0x4c7b20
test edi, edi
jne 0x4c7e07
mov edi, 1
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ebp
mov dword [esp], ecx
call fcn.004e7700
test eax, eax
jne 0x4c7d10
mov dword [esp + 0x30], edi
mov edx, esi
mov eax, ebx
call fcn.004c75f0
test edx, edx
js 0x4c7da8
mov edi, dword [ebx + 0x1c8]
mov dword [esp], esi
call fcn.004e5fc0
cmp edi, eax
je 0x4c7e0e
mov dword [esp], esi
call fcn.004e5ed0
test eax, eax
je 0x4c7d5c
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x4c7da8
mov dword [esp + 0x2c], 1
mov edx, esi
mov eax, ebx
call fcn.004c75f0
test edx, edx
jns 0x4c7d69
mov eax, 0xffffff7b
jmp 0x4c7b20
mov dword [esp], 4
call fcn.0062b6b8
mov ecx, dword [esp + 0x90]
mov dword [ecx], eax
jmp 0x4c7a66
mov dword [ebx + 0x58], 3
lea eax, [esp + 0x50]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x38]
mov dword [esp], edx
call fcn.004cece0
test eax, eax
je 0x4c7ad0
jmp 0x4c7da8
xor eax, eax
jmp 0x4c7b47
mov edi, dword [esp + 0x30]
mov dword [esp + 4], esi
mov ecx, dword [esp + 0x20]
mov dword [esp], ecx
call fcn.004e70a0
mov ecx, dword [esp + 0x20]
jmp 0x4c7d48
mov eax, 0xffffff7c
jmp 0x4c7b47
mov eax, 0xffffff80
jmp 0x4c7b47