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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov edi, dword [esp + 0xa4]
mov edx, dword [edi]
mov eax, dword [edi + 4]
sub eax, edx
cmp eax, 4
je 0x4c0ed6
lea esi, [esp + 0x28]
mov ecx, esi
call fcn.004c706c
mov eax, dword [esp + 0x28]
mov dword [esp + 8], 4
mov ecx, esi
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.004c7104
mov ebx, dword [edi]
mov dword [eax], 0
mov eax, dword [edi + 4]
sub esp, 0xc
mov ebp, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xa8]
sub ebp, ebx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov edx, ebp
mov dword [esp + 0x1c], ebp
sar edx, 2
mov dword [esp + 0x14], eax
sub eax, ecx
sar eax, 2
cmp edx, eax
jb 0x4c049a
ja 0x4c0501
mov eax, edx
sub eax, 1
jns 0x4c0492
jmp 0x4c0501
ja 0x4c0501
sub eax, 1
cmp eax, 0xffffffff
je 0x4c0501
mov ebp, dword [ecx + eax*4]
cmp dword [ebx + eax*4], ebp
jae 0x4c0488
mov eax, dword [esp + 0x2c]
mov ecx, esi
mov dword [esp + 0x14], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.004c7160
sub esp, 8
cmp dword [esp + 0x18], ebx
je 0x4c0514
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov dword [esp + 8], 4
mov ecx, esi
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004c7104
sub esp, 0xc
mov edx, dword [esp + 0x14]
test edx, edx
je 0x4c0514
mov edx, dword [esp + 0x1c]
add edx, ebx
lea esi, [esi]
mov ecx, dword [ebx]
add ebx, 4
add eax, 4
mov dword [eax - 4], ecx
cmp edx, ebx
jne 0x4c04f0
jmp 0x4c0514
mov dword [esp], esi
mov edx, dword [esp + 0xa8]
xor ecx, ecx
mov eax, edi
call fcn.004be530
lea edi, [esp + 0x30]
mov ecx, edi
call fcn.004c706c
mov eax, dword [esp + 0xa8]
mov ebx, dword [eax + 4]
mov ebp, dword [eax]
cmp ebx, ebp
je 0x4c056f
sub ebx, ebp
mov dword [esp + 8], 4
mov ecx, edi
mov eax, ebx
add ebx, ebp
sar eax, 2
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.004c7104
mov edx, eax
sub esp, 0xc
mov eax, ebp
lea esi, [esi]
mov ecx, dword [eax]
add eax, 4
add edx, 4
mov dword [edx - 4], ecx
cmp ebx, eax
jne 0x4c0560
lea ecx, [esp + 0x38]
call fcn.004c706c
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
cmp ebx, ebp
je 0x4c05bf
sub ebx, ebp
mov dword [esp + 8], 4
lea ecx, [esp + 0x38]
mov eax, ebx
add ebx, ebp
sar eax, 2
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.004c7104
mov edx, eax
sub esp, 0xc
mov eax, ebp
mov ecx, dword [eax]
add eax, 4
add edx, 4
mov dword [edx - 4], ecx
cmp ebx, eax
jne 0x4c05b0
lea ecx, [esp + 0x40]
call fcn.004c706c
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
cmp ebx, ebp
je 0x4c060f
sub ebx, ebp
mov dword [esp + 8], 4
lea ecx, [esp + 0x40]
mov eax, ebx
add ebx, ebp
sar eax, 2
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004c7104
mov edx, eax
sub esp, 0xc
mov eax, ebp
mov ecx, dword [eax]
add eax, 4
add edx, 4
mov dword [edx - 4], ecx
cmp ebx, eax
jne 0x4c0600
lea ecx, [esp + 0x74]
call fcn.004c706c
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x74]
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.004c7104
mov dword [eax], 1
sub esp, 0xc
lea ecx, [esp + 0x50]
call fcn.004c706c
mov ebp, dword [esp + 0x74]
mov ebx, dword [esp + 0x78]
mov eax, ebp
cmp ebx, ebp
je 0x4c069f
sub ebx, ebp
mov dword [esp + 8], 4
lea ecx, [esp + 0x50]
mov eax, ebx
add ebx, ebp
sar eax, 2
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.004c7104
mov edx, eax
sub esp, 0xc
mov eax, ebp
lea esi, [esi]
mov ecx, dword [eax]
add eax, 4
add edx, 4
mov dword [edx - 4], ecx
cmp ebx, eax
jne 0x4c0688
mov ebp, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov dword [esp + 4], ebp
lea ecx, [esp + 0x74]
mov dword [esp], eax
mov byte [esp + 0x58], 0
call fcn.004c7160
sub esp, 8
lea ecx, [esp + 0x74]
call fcn.004c707a
lea ecx, [esp + 0x5c]
call fcn.004c706c
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x5c]
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.004c7104
mov dword [eax], 0
sub esp, 0xc
lea ecx, [esp + 0x68]
mov byte [esp + 0x64], 0
call fcn.004c706c
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x68]
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.004c7104
mov dword [eax], 0
sub esp, 0xc
lea ecx, [esp + 0x48]
mov byte [esp + 0x70], 0
call fcn.004c706c
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x48]
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.004c7104
mov dword [eax], 1
sub esp, 0xc
lea ecx, [esp + 0x74]
call fcn.004c706c
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
mov eax, ebp
cmp ebx, ebp
je 0x4c07bf
sub ebx, ebp
mov dword [esp + 8], 4
lea ecx, [esp + 0x74]
mov eax, ebx
add ebx, ebp
sar eax, 2
mov dword [esp + 4], eax
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.004c7104
mov edx, eax
sub esp, 0xc
mov eax, ebp
lea esi, [esi]
nop
mov ecx, dword [eax]
add eax, 4
add edx, 4
mov dword [edx - 4], ecx
cmp ebx, eax
jne 0x4c07a8
mov ebp, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov dword [esp + 4], ebp
lea ecx, [esp + 0x48]
mov dword [esp], eax
mov byte [esp + 0x7c], 0
call fcn.004c7160
sub esp, 8
lea ecx, [esp + 0x48]
call fcn.004c707a
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
lea esi, [esi]
lea esi, [esi]
and edx, 1
je 0x4c0e80
mov edx, dword [esp + 0x40]
test byte [edx], 1
jne 0x4c0aee
lea esi, [esi]
lea esi, [esi]
lea ecx, [esp + 0x40]
call fcn.004bc660
mov edx, dword [esp + 0x68]
test byte [edx], 1
jne 0x4c082f
mov eax, dword [esp + 0x74]
test byte [eax], 1
je 0x4c0acb
cmp byte [esp + 0x70], 0
je 0x4c0e08
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
sub eax, edx
sub ecx, ebx
sar eax, 2
sar ecx, 2
cmp eax, ecx
jb 0x4c0882
ja 0x4c0da0
sub eax, 1
jns 0x4c087a
jmp 0x4c0da0
ja 0x4c0da0
sub eax, 1
cmp eax, 0xffffffff
je 0x4c0da0
mov ecx, dword [ebx + eax*4]
cmp dword [edx + eax*4], ecx
jae 0x4c0868
lea ecx, [esp + 0x48]
call fcn.004c706c
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x6c]
mov eax, edx
cmp ebx, edx
je 0x4c08e7
sub ebx, edx
mov dword [esp + 8], 4
lea ecx, [esp + 0x48]
mov eax, ebx
mov dword [esp + 0x14], edx
sar eax, 2
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.004c7104
sub esp, 0xc
mov edx, dword [esp + 0x14]
add ebx, edx
lea esi, [esi]
mov ecx, dword [edx]
add edx, 4
add eax, 4
mov dword [eax - 4], ecx
cmp ebx, edx
jne 0x4c08d0
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov dword [esp + 4], edx
lea ecx, [esp + 0x68]
mov dword [esp], eax
call fcn.004c7160
sub esp, 8
cmp ebp, ebx
je 0x4c093f
sub ebp, ebx
mov dword [esp + 8], 4
lea ecx, [esp + 0x68]
mov eax, ebp
add ebp, ebx
sar eax, 2
mov dword [esp + 4], eax
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call fcn.004c7104
sub esp, 0xc
nop
mov edx, dword [ebx]
add ebx, 4
add eax, 4
mov dword [eax - 4], edx
cmp ebp, ebx
jne 0x4c0930
lea eax, [esp + 0x48]
lea ecx, [esp + 0x68]
mov dword [esp], eax
call fcn.004bcef0
sub esp, 4
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x48]
xor byte [esp + 0x70], 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.004c7160
sub esp, 8
lea ecx, [esp + 0x48]
call fcn.004c707a
cmp byte [esp + 0x7c], 0
jne 0x4c0dba
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub eax, ecx
sub edx, ebx
sar eax, 2
sar edx, 2
cmp eax, edx
jb 0x4c09d2
ja 0x4c0dd0
sub eax, 1
jns 0x4c09ca
jmp 0x4c0dd0
ja 0x4c0dd0
sub eax, 1
cmp eax, 0xffffffff
je 0x4c0dd0
mov edx, dword [ebx + eax*4]
cmp dword [ecx + eax*4], edx
jae 0x4c09b8
lea ecx, [esp + 0x48]
call fcn.004c706c
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x78]
mov eax, edx
cmp ebx, edx
je 0x4c0a37
sub ebx, edx
mov dword [esp + 8], 4
lea ecx, [esp + 0x48]
mov eax, ebx
mov dword [esp + 0x14], edx
sar eax, 2
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.004c7104
sub esp, 0xc
mov edx, dword [esp + 0x14]
add ebx, edx
lea esi, [esi]
mov ecx, dword [edx]
add edx, 4
add eax, 4
mov dword [eax - 4], ecx
cmp ebx, edx
jne 0x4c0a20
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov dword [esp + 4], edx
lea ecx, [esp + 0x74]
mov dword [esp], eax
call fcn.004c7160
sub esp, 8
cmp ebp, ebx
je 0x4c0a8f
sub ebp, ebx
mov dword [esp + 8], 4
lea ecx, [esp + 0x74]
mov eax, ebp
add ebp, ebx
sar eax, 2
mov dword [esp + 4], eax
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.004c7104
sub esp, 0xc
nop
mov edx, dword [ebx]
add ebx, 4
add eax, 4
mov dword [eax - 4], edx
cmp ebp, ebx
jne 0x4c0a80
lea eax, [esp + 0x48]
lea ecx, [esp + 0x74]
mov dword [esp], eax
call fcn.004bcef0
sub esp, 4
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x48]
xor byte [esp + 0x7c], 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.004c7160
sub esp, 8
lea ecx, [esp + 0x48]
call fcn.004c707a
lea ecx, [esp + 0x68]
call fcn.004bc660
lea ecx, [esp + 0x74]
call fcn.004bc660
mov edx, dword [esp + 0x40]
test byte [edx], 1
je 0x4c0810
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x44]
sub eax, ecx
sub ebx, edx
sar eax, 2
sar ebx, 2
cmp eax, ebx
jb 0x4c0b32
ja 0x4c0e20
sub eax, 1
jns 0x4c0b2a
jmp 0x4c0e20
ja 0x4c0e20
sub eax, 1
cmp eax, 0xffffffff
je 0x4c0e20
mov ebx, dword [edx + eax*4]
cmp dword [ecx + eax*4], ebx
jae 0x4c0b18
lea eax, [esp + 0x38]
lea ecx, [esp + 0x40]
mov dword [esp], eax
call fcn.004bcef0
sub esp, 4
movzx eax, byte [esp + 0x58]
lea ecx, [esp + 0x68]
xor eax, 1
movzx eax, al
mov dword [esp + 4], eax
lea eax, [esp + 0x50]
mov dword [esp], eax
call fcn.004c0260
sub esp, 8
movzx eax, byte [esp + 0x64]
lea ecx, [esp + 0x74]
xor eax, 1
movzx eax, al
mov dword [esp + 4], eax
lea eax, [esp + 0x5c]
mov dword [esp], eax
call fcn.004c0260
sub esp, 8
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
sub eax, ecx
mov edx, dword [ecx]
cmp eax, 4
jne 0x4c07f0
test edx, edx
jne 0x4c07f0
lea esi, [esi]
lea esi, [esi]
cmp byte [esp + 0x70], 0
jne 0x4c0de8
mov ebx, dword [esp + 0xa8]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov ecx, dword [ebx]
mov ebx, dword [ebx + 4]
sub eax, edx
mov dword [esp + 0x14], ebx
sub ebx, ecx
sar eax, 2
sar ebx, 2
cmp eax, ebx
jb 0x4c0c12
ja 0x4c0f41
sub eax, 1
jns 0x4c0c0a
jmp 0x4c0f41
ja 0x4c0f41
sub eax, 1
cmp eax, 0xffffffff
je 0x4c0f41
mov ebx, dword [ecx + eax*4]
cmp dword [edx + eax*4], ebx
jae 0x4c0bf8
mov ecx, dword [esp + 0xa0]
call fcn.004c706c
mov ebx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x68]
cmp ebx, ebp
je 0x4c0c6f
sub ebx, ebp
mov dword [esp + 8], 4
mov ecx, dword [esp + 0xa0]
mov eax, ebx
add ebx, ebp
sar eax, 2
mov dword [esp + 4], eax
mov eax, dword [esp + 0xa0]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.004c7104
mov edx, eax
sub esp, 0xc
mov eax, ebp
nop
mov ecx, dword [eax]
add eax, 4
add edx, 4
mov dword [edx - 4], ecx
cmp ebx, eax
jne 0x4c0c60
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x74]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.004c7160
sub esp, 8
lea ecx, [esp + 0x74]
call fcn.004c707a
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x68]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call fcn.004c7160
sub esp, 8
lea ecx, [esp + 0x68]
call fcn.004c707a
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call fcn.004c7160
sub esp, 8
lea ecx, [esp + 0x5c]
call fcn.004c707a
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.004c7160
sub esp, 8
lea ecx, [esp + 0x50]
call fcn.004c707a
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x40]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004c7160
sub esp, 8
lea ecx, [esp + 0x40]
call fcn.004c707a
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.004c7160
sub esp, 8
lea ecx, [esp + 0x38]
call fcn.004c707a
mov eax, dword [esp + 0x34]
mov ecx, edi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.004c7160
mov ecx, edi
sub esp, 8
call fcn.004c707a
mov eax, dword [esp + 0x2c]
mov ecx, esi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.004c7160
mov ecx, esi
sub esp, 8
call fcn.004c707a
mov eax, dword [esp + 0xa0]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
lea ecx, [esp + 0x68]
call fcn.004bcef0
sub esp, 4
cmp byte [esp + 0x7c], 0
je 0x4c0986
mov dword [esp], esi
lea ecx, [esp + 0x74]
call fcn.004bdd10
sub esp, 4
jmp 0x4c0acb
mov dword [esp], esi
lea ecx, [esp + 0x74]
call fcn.004bcef0
sub esp, 4
jmp 0x4c0acb
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0x68]
mov dword [esp], eax
call fcn.004bde30
sub esp, 4
jmp 0x4c0bb0
mov dword [esp], edi
lea ecx, [esp + 0x68]
call fcn.004bdd10
sub esp, 4
jmp 0x4c097b
lea eax, [esp + 0x40]
lea ecx, [esp + 0x38]
mov dword [esp], eax
call fcn.004bcef0
sub esp, 4
movzx eax, byte [esp + 0x70]
lea ecx, [esp + 0x50]
xor eax, 1
movzx eax, al
mov dword [esp + 4], eax
lea eax, [esp + 0x68]
mov dword [esp], eax
call fcn.004c0260
sub esp, 8
movzx eax, byte [esp + 0x7c]
lea ecx, [esp + 0x5c]
xor eax, 1
movzx eax, al
mov dword [esp + 4], eax
lea eax, [esp + 0x74]
mov dword [esp], eax
call fcn.004c0260
sub esp, 8
jmp 0x4c0b89
lea ecx, [esp + 0x38]
call fcn.004bc660
mov eax, dword [esp + 0x50]
test byte [eax], 1
jne 0x4c0e9b
mov eax, dword [esp + 0x5c]
test byte [eax], 1
je 0x4c0eb9
mov dword [esp], edi
lea ecx, [esp + 0x50]
call fcn.004bde30
sub esp, 4
mov dword [esp], esi
lea ecx, [esp + 0x5c]
call fcn.004bdfb0
sub esp, 4
lea ecx, [esp + 0x50]
call fcn.004bc660
lea ecx, [esp + 0x5c]
call fcn.004bc660
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
jmp 0x4c07f0
mov eax, dword [edx]
test eax, eax
jne 0x4c0411
mov ecx, dword [esp + 0xa0]
call fcn.004c706c
mov esi, dword [edi + 4]
mov ebx, dword [edi]
cmp esi, ebx
je 0x4c0d87
sub esi, ebx
mov dword [esp + 8], 4
mov ecx, dword [esp + 0xa0]
mov eax, esi
add esi, ebx
sar eax, 2
mov dword [esp + 4], eax
mov eax, dword [esp + 0xa0]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.004c7104
mov edx, eax
sub esp, 0xc
mov eax, ebx
mov ecx, dword [eax]
add eax, 4
add edx, 4
mov dword [edx - 4], ecx
cmp eax, esi
jne 0x4c0f2d
jmp 0x4c0d87
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0x68]
mov dword [esp], eax
call fcn.004bdfb0
sub esp, 4
cmp byte [esp + 0x70], 0
jne 0x4c0c12
jmp 0x4c0bbb