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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x6c]
cmp eax, dword [ecx + 8]
jbe 0x4ca119
sub esp, 0xec
lea eax, [0x505e06]
mov dword [esp], eax
mov dword [esp + 4], 7
call fcn.004c7340
lea eax, [0x505e06]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 7
mov dword [esp], 8
lea eax, [0x50eb58]
mov dword [esp + 4], eax
call fcn.00424eb0
test eax, eax
jne 0x4ca105
movzx eax, byte [esp + 0x10c]
test al, al
jne 0x4ca0c6
mov ecx, dword [esp + 0x104]
movzx edx, byte [ecx]
test dl, dl
je 0x4ca0b9
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
mov eax, dword [esp + 0xf0]
mov dword [esp + 0xdc], eax
mov ecx, dword [esp + 0xf4]
mov dword [esp + 0xe0], ecx
mov edx, dword [esp + 0xf8]
mov dword [esp + 0xe4], edx
mov ebx, dword [esp + 0xfc]
mov dword [esp + 0xe8], ebx
lea ebp, [esp + 0xdc]
mov dword [esp], ebp
mov dword [esp + 4], 2
mov dword [esp + 8], 2
call fcn.004c0bb0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004912e0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test edx, edx
jne 0x4ca027
mov eax, dword [eax + 0x10]
mov dword [esp], ecx
call eax
movzx eax, byte [esp + 4]
test al, al
je 0x4c9c51
mov dword [esp], 0
mov eax, dword [esp + 0xf8]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0xfc]
mov dword [esp + 8], ecx
call fcn.0043a7d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x100]
mov dword [esp], ebx
mov byte [esp + 4], 8
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
call fcn.004cb140
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], edx
mov eax, dword [esp + 0x108]
mov dword [esp], eax
lea ecx, [esp + 0x94]
mov dword [esp + 4], ecx
call fcn.00402ef0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov eax, dword [esp + 0xf0]
mov dword [esp + 0xcc], eax
mov ecx, dword [esp + 0xf4]
mov dword [esp + 0xd0], ecx
mov edx, dword [esp + 0xf8]
mov dword [esp + 0xd4], edx
mov ebx, dword [esp + 0xfc]
mov dword [esp + 0xd8], ebx
lea ebp, [esp + 0xcc]
mov dword [esp], ebp
mov dword [esp + 4], 2
mov dword [esp + 8], 2
call fcn.004c0bb0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004c1750
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
test ebx, ebx
jne 0x4c9bbf
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ecx
xor edx, edx
jmp 0x4c9b33
mov dword [esp + 0x28], edx
lea eax, [ecx + edx*8]
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov ebx, dword [ebx + 0x1c]
mov dword [esp], eax
call ebx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov edx, dword [esp + 0xf8]
mov dword [esp + 0xbc], edx
mov ebx, dword [esp + 0xfc]
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xbc]
mov dword [esp], eax
mov dword [esp + 4], 2
mov dword [esp + 8], 2
call fcn.004c0bb0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xf0]
mov dword [esp], edx
mov ebx, dword [esp + 0xf4]
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x100]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x104]
mov dword [esp + 0x14], ecx
mov ebp, dword [esp + 0x108]
mov dword [esp + 0x18], ebp
mov byte [esp + 0x1c], 0
call fcn.004c97b0
mov eax, dword [esp + 0x28]
lea edx, [eax + 1]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
cmp edx, eax
jl 0x4c9a43
movzx eax, byte [esp + 0x10c]
test al, al
je 0x4c9b55
mov eax, dword [esp + 0x104]
movzx eax, byte [eax]
test al, al
jne 0x4c9b62
nop
call fcn.004256d0
add esp, 0xec
ret
mov eax, dword [esp + 0x100]
mov dword [esp], eax
mov byte [esp + 4], 9
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.004cb140
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov eax, dword [esp + 0x108]
mov dword [esp], eax
lea eax, [esp + 0x40]
mov dword [esp + 4], eax
call fcn.00402ef0
jmp 0x4c9b55
mov eax, dword [ebx + 0x10]
mov dword [esp], edx
call eax
mov dword [esp], 0
call fcn.0043a7d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x100]
mov dword [esp], ebx
mov byte [esp + 4], 4
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
call fcn.004cb140
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x108]
mov dword [esp], eax
lea eax, [esp + 0x88]
mov dword [esp + 4], eax
call fcn.00402ef0
mov eax, dword [esp + 0x104]
mov byte [eax], 0
nop
call fcn.004256d0
add esp, 0xec
ret
mov dword [esp], 0
mov eax, dword [esp + 0xf8]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0xfc]
mov dword [esp + 8], ecx
call fcn.0043a7d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x100]
mov dword [esp], ebx
mov byte [esp + 4], 5
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.004cb140
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x108]
mov dword [esp], eax
lea ecx, [esp + 0x7c]
mov dword [esp + 4], ecx
call fcn.00402ef0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov eax, dword [esp + 0xf0]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xfc]
mov dword [esp + 0xb8], eax
lea eax, [esp + 0xac]
mov dword [esp], eax
mov dword [esp + 4], 2
mov dword [esp + 8], 2
call fcn.004c0bb0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0048efb0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test ecx, ecx
jne 0x4c9fa1
mov dword [esp + 0x30], eax
jmp 0x4c9ddc
mov edx, dword [esp + 0x100]
mov dword [esp], edx
mov byte [esp + 4], 6
mov ebx, dword [esp + 0x3c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call fcn.004cb140
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov eax, dword [esp + 0x108]
mov dword [esp], eax
lea ecx, [esp + 0x4c]
mov dword [esp + 4], ecx
call fcn.00402ef0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x104]
movzx edx, byte [ecx]
test dl, dl
je 0x4c9f94
lea eax, [0x4e7600]
mov dword [esp], eax
mov dword [esp + 4], 0xffff
mov dword [esp + 8], 0xffff
call fcn.004375b0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], edx
mov ebx, dword [esp + 0x30]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call fcn.0048e9f0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
test ecx, ecx
jne 0x4c9e59
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jbe 0x4c9d85
jmp 0x4ca112
mov eax, dword [0x59be18]
cmp ecx, eax
je 0x4c9eef
mov eax, dword [ecx + 0x10]
mov dword [esp], edx
call eax
mov dword [esp], 0
call fcn.0043a7d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x100]
mov dword [esp], ebx
mov byte [esp + 4], 4
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
call fcn.004cb140
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
mov eax, dword [esp + 0x108]
mov dword [esp], eax
lea ecx, [esp + 0x58]
mov dword [esp + 4], ecx
call fcn.00402ef0
mov eax, dword [esp + 0x104]
mov byte [eax], 0
movzx ecx, byte [esp + 0x10c]
test cl, cl
jmp 0x4c9b45
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [esp], ecx
mov dword [esp + 4], edx
mov eax, dword [0x59be1c]
mov dword [esp + 8], eax
call fcn.00402130
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4c9f23
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
jmp 0x4c9e67
mov eax, dword [esp + 0x100]
mov dword [esp], eax
mov byte [esp + 4], 7
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.004cb140
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
mov eax, dword [esp + 0x108]
mov dword [esp], eax
lea ecx, [esp + 0x64]
mov dword [esp + 4], ecx
call fcn.00402ef0
movzx eax, byte [esp + 0x10c]
test al, al
mov eax, dword [esp + 0x104]
jmp 0x4c9b45
nop
call fcn.004256d0
add esp, 0xec
ret
mov eax, dword [ecx + 0x10]
mov dword [esp], edx
call eax
mov dword [esp], 0
call fcn.0043a7d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x100]
mov dword [esp], ebx
mov byte [esp + 4], 4
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
call fcn.004cb140
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
mov eax, dword [esp + 0x108]
mov dword [esp], eax
lea eax, [esp + 0x70]
mov dword [esp + 4], eax
call fcn.00402ef0
mov eax, dword [esp + 0x104]
mov byte [eax], 0
nop
call fcn.004256d0
add esp, 0xec
ret
mov eax, dword [edx + 0x10]
mov dword [esp], ebx
call eax
mov dword [esp], 0
call fcn.0043a7d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x100]
mov dword [esp], ebx
mov byte [esp + 4], 4
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
call fcn.004cb140
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x108]
mov dword [esp], eax
lea eax, [esp + 0xa0]
mov dword [esp + 4], eax
call fcn.00402ef0
mov eax, dword [esp + 0x104]
mov byte [eax], 0
nop
call fcn.004256d0
add esp, 0xec
ret
nop
call fcn.004256d0
add esp, 0xec
ret
mov eax, dword [esp + 0x108]
mov dword [esp + 8], eax
mov dword [esp], 4
lea ecx, [0x50ecbc]
mov dword [esp + 4], ecx
call fcn.00424eb0
test eax, eax
jne 0x4ca0f8
movzx eax, byte [esp + 0x10c]
jmp 0x4c9826
nop
call fcn.004256d0
add esp, 0xec
ret
nop
call fcn.004256d0
add esp, 0xec
ret
call fcn.00424c90
ud2
call fcn.004491a0
jmp fcn.004c97b0