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

Disassembly:
sub esp, 0x2d8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x980], ebx
je 0x4c0e95
mov eax, dword [esi + 0x38]
push eax
call dword [0x4db6f0]
test eax, eax
je 0x4c0e95
mov edx, dword [esi + 0x38]
lea ecx, [esp + 0x44]
push edi
push ecx
push edx
call dword [0x4db650]
mov al, byte [esi + 0xa98]
xor edi, edi
test al, 2
mov dword [esp + 0x20], edi
mov dword [esi + 0xa9c], ebx
je 0x4c08a9
mov edi, 2
mov dword [esp + 0x20], edi
mov eax, dword [esi + 0x980]
xor edx, edx
cmp eax, ebx
mov dword [esp + 0x1c], edx
jle 0x4c0e09
push ebp
jmp 0x4c08c6
mov edx, dword [esp + 0x20]
xor ebx, ebx
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x4c]
sub ecx, edi
cmp edx, eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], edx
jge 0x4c0a94
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x90]
mov dword [esp + 0x30], eax
lea edx, [esi + ecx*4 + 0x940]
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x38]
mov ebp, dword [eax]
mov ecx, ebp
shl ecx, 4
add ecx, ebp
mov eax, dword [esi + ecx*8 + 0xc8]
lea edi, [esi + ecx*8]
test al, 8
jne 0x4c0a16
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
cmp edx, ecx
jle 0x4c093d
test al, 1
jne 0x4c0a3a
mov ecx, dword [esi + 0xaa0]
test ecx, ecx
je 0x4c094b
xor ebx, ebx
jmp 0x4c095a
test ah, 1
je 0x4c0954
xor ebx, ebx
jmp 0x4c095a
mov ebx, dword [esi + 0xa84]
test al, 2
mov dword [esp + 0x28], ebx
je 0x4c0995
mov ecx, dword [edi + 0x140]
test ecx, ecx
je 0x4c0973
call fcn.004cf310
jmp 0x4c0979
mov eax, dword [edi + 0xe4]
mov dword [edi + 0x134], eax
mov eax, dword [edi + 0x13c]
test eax, eax
jg 0x4c09d8
mov ecx, dword [edi + 0x134]
mov eax, ebx
add eax, ecx
jmp 0x4c09d8
mov ecx, dword [esi + 0x30]
mov eax, 0x51eb851f
imul ecx, dword [edi + 0xe4]
mul ecx
mov ecx, dword [esp + 0x30]
shr edx, 5
mov dword [edi + 0x134], edx
mov edx, dword [edi + 0xe4]
mov dword [ecx], ebp
lea eax, [edx + ebx]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
add edx, eax
inc ebx
add ecx, 4
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
add ecx, eax
cmp ecx, edx
mov dword [esp + 0x10], ecx
jg 0x4c0a40
mov ecx, dword [edi + 0xe8]
mov eax, 0x51eb851f
imul ecx, dword [esi + 0x30]
mul ecx
mov eax, dword [esp + 0x34]
shr edx, 5
cmp edx, eax
jle 0x4c0a0a
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
cmp eax, edx
je 0x4c0a94
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
mov ecx, dword [esi + 0x980]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], edx
jl 0x4c090a
jmp 0x4c0a94
dec dword [esp + 0x14]
jmp 0x4c0a94
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
cmp ecx, edx
mov edx, ebp
jne 0x4c0a6e
shl edx, 4
add edx, ebp
mov eax, 0x51eb851f
mov ecx, dword [esi + edx*8 + 0xe8]
imul ecx, dword [esi + 0x30]
mul ecx
shr edx, 5
mov dword [esp + 0x34], edx
jmp 0x4c0a94
shl edx, 4
add edx, ebp
test byte [esi + edx*8 + 0xc8], 2
jne 0x4c0a81
dec dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
dec edx
sub ecx, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x980]
cmp ecx, eax
jne 0x4c0aa7
dec ecx
mov dword [esp + 0x14], ecx
mov ebx, dword [esp + 0x20]
cmp ebx, ecx
jl 0x4c0b09
mov eax, dword [esp + 0x4c]
mov ecx, dword [esi + ebx*4 + 0x940]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x3c], eax
mov eax, ecx
shl eax, 4
add eax, ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edx
mov edx, dword [esi + eax*8 + 0xe8]
mov eax, 0x51eb851f
imul edx, dword [esi + 0x30]
mul edx
mov eax, dword [esi + 0xa9c]
shr edx, 5
add edx, edi
push eax
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x40]
push edx
push ecx
mov ecx, esi
call fcn.004c0720
jmp 0x4c0db5
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x10]
sub edx, edi
test edx, edx
mov dword [esp + 0x10], edx
jle 0x4c0c72
mov eax, dword [esp + 0x18]
cmp eax, 1
jle 0x4c0c72
mov edi, dword [esp + 0x1c]
add edx, edi
dec eax
test eax, eax
mov dword [esp + 0x10], edx
jle 0x4c0c47
mov ebx, 1
lea edx, [esp + 0x90]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], edx
mov edi, dword [esi + 0xaa0]
mov eax, dword [edx]
xor ecx, ecx
cmp edi, ecx
je 0x4c0b67
mov dword [esp + 0x28], ecx
jmp 0x4c0b8a
mov edi, eax
shl edi, 4
add edi, eax
mov eax, dword [esi + edi*8 + 0xc8]
test ah, 1
je 0x4c0b80
mov dword [esp + 0x28], ecx
jmp 0x4c0b8a
mov eax, dword [esi + 0xa84]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
cmp ebx, eax
jge 0x4c0bea
mov edi, eax
add edx, 4
sub edi, ebx
mov eax, dword [esi + 0xaa0]
test eax, eax
je 0x4c0bab
xor eax, eax
jmp 0x4c0bca
mov eax, dword [edx]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [esi + ecx*8 + 0xc8]
test ah, 1
je 0x4c0bc4
xor eax, eax
jmp 0x4c0bca
mov eax, dword [esi + 0xa84]
mov ecx, dword [edx]
add edx, 4
mov ebx, ecx
shl ebx, 4
add ebx, ecx
sub eax, dword [esi + ebx*8 + 0xe4]
add ebp, eax
dec edi
jne 0x4c0b9d
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx]
mov edi, dword [esp + 0x28]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea eax, [esi + ecx*8]
mov ecx, dword [esi + ecx*8 + 0x104]
add edi, ecx
cmp ebp, edi
jb 0x4c0c0f
mov dword [eax + 0xec], ecx
jmp 0x4c0c15
mov dword [eax + 0xec], ebp
mov eax, dword [eax + 0xec]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
add eax, edi
sub ecx, eax
mov eax, dword [esp + 0x18]
add edx, 4
inc ebx
mov dword [esp + 0x10], ecx
dec eax
lea ecx, [ebx - 1]
mov dword [esp + 0x30], edx
cmp ecx, eax
mov dword [esp + 0x1c], ebx
jl 0x4c0b53
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + edx*4 + 0x8c]
sub ecx, ebp
mov edx, eax
shl edx, 4
add edx, eax
mov dword [esi + edx*8 + 0xec], ecx
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x54]
cmp ecx, ebx
mov dword [esp + 0x1c], ecx
jl 0x4c0db1
lea eax, [esi + ecx*4 + 0x940]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
mov ebx, dword [ecx]
mov edx, ebx
shl edx, 4
add edx, ebx
mov al, byte [esi + edx*8 + 0xc8]
lea ebp, [esi + edx*8]
test al, 8
jne 0x4c0d91
mov ecx, dword [ebp + 0x144]
lea eax, [esp + 0xe0]
push 0x104
push eax
push ecx
call dword [0x4db690]
lea edx, [esp + 0xe0]
push 0x4f14b0
push edx
call dword [0x4db3e8]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
add ecx, eax
mov eax, dword [esi + 0xaa0]
add esp, 8
test eax, eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], edi
je 0x4c0d00
xor eax, eax
jmp 0x4c0d15
mov eax, dword [ebp + 0xc8]
test ah, 1
je 0x4c0d0f
xor eax, eax
jmp 0x4c0d15
mov eax, dword [esi + 0xa84]
test byte [ebp + 0xc8], 2
je 0x4c0d34
mov ecx, dword [ebp + 0x13c]
test ecx, ecx
jle 0x4c0d2c
sub edi, ecx
jmp 0x4c0d61
mov edx, dword [ebp + 0x134]
jmp 0x4c0d5d
cmp dword [esp + 0x18], 1
jne 0x4c0d57
sub edi, dword [ebp + 0xe4]
sub edi, eax
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x3c], edi
jmp 0x4c0d65
mov edx, dword [ebp + 0xec]
sub edi, edx
sub edi, eax
mov dword [esp + 0x3c], edi
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
cmp eax, edx
jne 0x4c0d79
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x3c], eax
mov ecx, dword [esi + 0xa9c]
lea edx, [esp + 0x3c]
push ecx
push edx
push ebx
mov ecx, esi
call fcn.004c0720
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
dec eax
sub edx, 4
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], edx
jge 0x4c0c8d
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x4c0de2
mov edx, dword [esp + 0x24]
add edx, eax
mov eax, dword [esi + 0xa98]
test eax, eax
mov dword [esp + 0x24], edx
je 0x4c0de2
and al, 0x10
mov ecx, edx
neg al
sbb eax, eax
add eax, 2
add ecx, eax
mov dword [esp + 0x24], ecx
mov edi, dword [esi + 0xa9c]
mov eax, dword [esi + 0x980]
inc edi
inc ebx
cmp ebx, eax
mov dword [esi + 0xa9c], edi
mov dword [esp + 0x20], ebx
jl 0x4c08c0
mov edi, dword [esp + 0x24]
pop ebp
xor ebx, ebx
mov eax, dword [esi + 0xa98]
test al, 8
je 0x4c0e16
dec edi
jmp 0x4c0e1f
xor ecx, ecx
cmp eax, ebx
setne cl
sub edi, ecx
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
sub edx, ecx
cmp edi, edx
je 0x4c0e48
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
push 6
sub eax, edx
push edi
push eax
mov eax, dword [esi + 0x38]
push ebx
push ebx
push ebx
push eax
call dword [0x4db680]
cmp dword [esi + 0xa88], edi
je 0x4c0e5d
mov ecx, esi
mov dword [esi + 0xa88], edi
call fcn.004c11d0
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
lea edx, [esp + 0x58]
mov dword [esp + 0x60], 0xfffffcb9
push edx
push ebx
push 0x4e
push eax
mov dword [esp + 0x78], ecx
call dword [0x4db70c]
push eax
call dword [0x4db670]
mov ecx, dword [esi + 0x38]
push 1
push ebx
push ecx
call fcn.004d1f00
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x2d8
ret