Function at 0x4c06a0
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 0x4c1186
lea esi, [esp + 0x28]
mov ecx, esi
call fcn.004c731c
mov eax, dword [esp + 0x28]
mov dword [esp + 8], 4
mov ecx, esi
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.004c73b4
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 0x4c074a
ja 0x4c07b1
mov eax, edx
sub eax, 1
jns 0x4c0742
jmp 0x4c07b1
ja 0x4c07b1
sub eax, 1
cmp eax, 0xffffffff
je 0x4c07b1
mov ebp, dword [ecx + eax*4]
cmp dword [ebx + eax*4], ebp
jae 0x4c0738
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.004c7410
sub esp, 8
cmp dword [esp + 0x18], ebx
je 0x4c07c4
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.004c73b4
sub esp, 0xc
mov edx, dword [esp + 0x14]
test edx, edx
je 0x4c07c4
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 0x4c07a0
jmp 0x4c07c4
mov dword [esp], esi
mov edx, dword [esp + 0xa8]
xor ecx, ecx
mov eax, edi
call fcn.004be7e0
lea edi, [esp + 0x30]
mov ecx, edi
call fcn.004c731c
mov eax, dword [esp + 0xa8]
mov ebx, dword [eax + 4]
mov ebp, dword [eax]
cmp ebx, ebp
je 0x4c081f
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.004c73b4
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 0x4c0810
lea ecx, [esp + 0x38]
call fcn.004c731c
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
cmp ebx, ebp
je 0x4c086f
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.004c73b4
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 0x4c0860
lea ecx, [esp + 0x40]
call fcn.004c731c
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
cmp ebx, ebp
je 0x4c08bf
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.004c73b4
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 0x4c08b0
lea ecx, [esp + 0x74]
call fcn.004c731c
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.004c73b4
mov dword [eax], 1
sub esp, 0xc
lea ecx, [esp + 0x50]
call fcn.004c731c
mov ebp, dword [esp + 0x74]
mov ebx, dword [esp + 0x78]
mov eax, ebp
cmp ebx, ebp
je 0x4c094f
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.004c73b4
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 0x4c0938
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.004c7410
sub esp, 8
lea ecx, [esp + 0x74]
call fcn.004c732a
lea ecx, [esp + 0x5c]
call fcn.004c731c
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.004c73b4
mov dword [eax], 0
sub esp, 0xc
lea ecx, [esp + 0x68]
mov byte [esp + 0x64], 0
call fcn.004c731c
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.004c73b4
mov dword [eax], 0
sub esp, 0xc
lea ecx, [esp + 0x48]
mov byte [esp + 0x70], 0
call fcn.004c731c
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.004c73b4
mov dword [eax], 1
sub esp, 0xc
lea ecx, [esp + 0x74]
call fcn.004c731c
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
mov eax, ebp
cmp ebx, ebp
je 0x4c0a6f
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.004c73b4
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 0x4c0a58
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.004c7410
sub esp, 8
lea ecx, [esp + 0x48]
call fcn.004c732a
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
lea esi, [esi]
lea esi, [esi]
and edx, 1
je 0x4c1130
mov edx, dword [esp + 0x40]
test byte [edx], 1
jne 0x4c0d9e
lea esi, [esi]
lea esi, [esi]
lea ecx, [esp + 0x40]
call fcn.004bc910
mov edx, dword [esp + 0x68]
test byte [edx], 1
jne 0x4c0adf
mov eax, dword [esp + 0x74]
test byte [eax], 1
je 0x4c0d7b
cmp byte [esp + 0x70], 0
je 0x4c10b8
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 0x4c0b32
ja 0x4c1050
sub eax, 1
jns 0x4c0b2a
jmp 0x4c1050
ja 0x4c1050
sub eax, 1
cmp eax, 0xffffffff
je 0x4c1050
mov ecx, dword [ebx + eax*4]
cmp dword [edx + eax*4], ecx
jae 0x4c0b18
lea ecx, [esp + 0x48]
call fcn.004c731c
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x6c]
mov eax, edx
cmp ebx, edx
je 0x4c0b97
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.004c73b4
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 0x4c0b80
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.004c7410
sub esp, 8
cmp ebp, ebx
je 0x4c0bef
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.004c73b4
sub esp, 0xc
nop
mov edx, dword [ebx]
add ebx, 4
add eax, 4
mov dword [eax - 4], edx
cmp ebp, ebx
jne 0x4c0be0
lea eax, [esp + 0x48]
lea ecx, [esp + 0x68]
mov dword [esp], eax
call fcn.004bd1a0
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.004c7410
sub esp, 8
lea ecx, [esp + 0x48]
call fcn.004c732a
cmp byte [esp + 0x7c], 0
jne 0x4c106a
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 0x4c0c82
ja 0x4c1080
sub eax, 1
jns 0x4c0c7a
jmp 0x4c1080
ja 0x4c1080
sub eax, 1
cmp eax, 0xffffffff
je 0x4c1080
mov edx, dword [ebx + eax*4]
cmp dword [ecx + eax*4], edx
jae 0x4c0c68
lea ecx, [esp + 0x48]
call fcn.004c731c
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x78]
mov eax, edx
cmp ebx, edx
je 0x4c0ce7
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.004c73b4
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 0x4c0cd0
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.004c7410
sub esp, 8
cmp ebp, ebx
je 0x4c0d3f
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.004c73b4
sub esp, 0xc
nop
mov edx, dword [ebx]
add ebx, 4
add eax, 4
mov dword [eax - 4], edx
cmp ebp, ebx
jne 0x4c0d30
lea eax, [esp + 0x48]
lea ecx, [esp + 0x74]
mov dword [esp], eax
call fcn.004bd1a0
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.004c7410
sub esp, 8
lea ecx, [esp + 0x48]
call fcn.004c732a
lea ecx, [esp + 0x68]
call fcn.004bc910
lea ecx, [esp + 0x74]
call fcn.004bc910
mov edx, dword [esp + 0x40]
test byte [edx], 1
je 0x4c0ac0
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 0x4c0de2
ja 0x4c10d0
sub eax, 1
jns 0x4c0dda
jmp 0x4c10d0
ja 0x4c10d0
sub eax, 1
cmp eax, 0xffffffff
je 0x4c10d0
mov ebx, dword [edx + eax*4]
cmp dword [ecx + eax*4], ebx
jae 0x4c0dc8
lea eax, [esp + 0x38]
lea ecx, [esp + 0x40]
mov dword [esp], eax
call fcn.004bd1a0
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.004c0510
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.004c0510
sub esp, 8
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
sub eax, ecx
mov edx, dword [ecx]
cmp eax, 4
jne 0x4c0aa0
test edx, edx
jne 0x4c0aa0
lea esi, [esi]
lea esi, [esi]
cmp byte [esp + 0x70], 0
jne 0x4c1098
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 0x4c0ec2
ja 0x4c11f1
sub eax, 1
jns 0x4c0eba
jmp 0x4c11f1
ja 0x4c11f1
sub eax, 1
cmp eax, 0xffffffff
je 0x4c11f1
mov ebx, dword [ecx + eax*4]
cmp dword [edx + eax*4], ebx
jae 0x4c0ea8
mov ecx, dword [esp + 0xa0]
call fcn.004c731c
mov ebx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x68]
cmp ebx, ebp
je 0x4c0f1f
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.004c73b4
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 0x4c0f10
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.004c7410
sub esp, 8
lea ecx, [esp + 0x74]
call fcn.004c732a
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.004c7410
sub esp, 8
lea ecx, [esp + 0x68]
call fcn.004c732a
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.004c7410
sub esp, 8
lea ecx, [esp + 0x5c]
call fcn.004c732a
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.004c7410
sub esp, 8
lea ecx, [esp + 0x50]
call fcn.004c732a
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.004c7410
sub esp, 8
lea ecx, [esp + 0x40]
call fcn.004c732a
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.004c7410
sub esp, 8
lea ecx, [esp + 0x38]
call fcn.004c732a
mov eax, dword [esp + 0x34]
mov ecx, edi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.004c7410
mov ecx, edi
sub esp, 8
call fcn.004c732a
mov eax, dword [esp + 0x2c]
mov ecx, esi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.004c7410
mov ecx, esi
sub esp, 8
call fcn.004c732a
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.004bd1a0
sub esp, 4
cmp byte [esp + 0x7c], 0
je 0x4c0c36
mov dword [esp], esi
lea ecx, [esp + 0x74]
call fcn.004bdfc0
sub esp, 4
jmp 0x4c0d7b
mov dword [esp], esi
lea ecx, [esp + 0x74]
call fcn.004bd1a0
sub esp, 4
jmp 0x4c0d7b
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0x68]
mov dword [esp], eax
call fcn.004be0e0
sub esp, 4
jmp 0x4c0e60
mov dword [esp], edi
lea ecx, [esp + 0x68]
call fcn.004bdfc0
sub esp, 4
jmp 0x4c0c2b
lea eax, [esp + 0x40]
lea ecx, [esp + 0x38]
mov dword [esp], eax
call fcn.004bd1a0
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.004c0510
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.004c0510
sub esp, 8
jmp 0x4c0e39
lea ecx, [esp + 0x38]
call fcn.004bc910
mov eax, dword [esp + 0x50]
test byte [eax], 1
jne 0x4c114b
mov eax, dword [esp + 0x5c]
test byte [eax], 1
je 0x4c1169
mov dword [esp], edi
lea ecx, [esp + 0x50]
call fcn.004be0e0
sub esp, 4
mov dword [esp], esi
lea ecx, [esp + 0x5c]
call fcn.004be260
sub esp, 4
lea ecx, [esp + 0x50]
call fcn.004bc910
lea ecx, [esp + 0x5c]
call fcn.004bc910
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
jmp 0x4c0aa0
mov eax, dword [edx]
test eax, eax
jne 0x4c06c1
mov ecx, dword [esp + 0xa0]
call fcn.004c731c
mov esi, dword [edi + 4]
mov ebx, dword [edi]
cmp esi, ebx
je 0x4c1037
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.004c73b4
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 0x4c11dd
jmp 0x4c1037
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0x68]
mov dword [esp], eax
call fcn.004be260
sub esp, 4
cmp byte [esp + 0x70], 0
jne 0x4c0ec2
jmp 0x4c0e6b