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

Disassembly:
mov ecx, dword [0x6b21fc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x68]
cmp eax, dword [ecx + 8]
jbe 0x4c88db
sub esp, 0xe8
mov eax, dword [esp + 0xec]
mov dword [eax + 0xac], 0
mov dword [eax + 0xb8], 0
mov byte [eax + 0xc0], 0
mov dword [eax + 0xc4], 0
mov byte [eax + 0xc8], 0
mov ecx, dword [esp + 0xfc]
mov dword [esp], ecx
mov ecx, dword [esp + 0x100]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x104]
mov dword [esp + 8], ecx
call fcn.00465e90
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0xf8]
mov ebp, dword [esp + 0xf0]
mov esi, dword [esp + 0xf4]
jmp 0x4c821d
mov esi, edx
mov edx, edi
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], esi
mov dword [esp + 0x78], ebp
test ecx, ecx
je 0x4c8813
mov dword [esp + 0x74], eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], ecx
mov ecx, dword [eax]
mov dword [esp + 0x4c], ecx
lea edi, [esp + 0xc4]
xor eax, eax
call fcn.00468aa7
mov ecx, dword [esp + 0xec]
mov ebx, dword [ecx + 0x94]
lea ebp, [0x52bd60]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 8], ebx
call fcn.0040eee0
movzx ecx, byte [esp + 0x10]
mov byte [esp + 0x23], cl
mov esi, dword [esp + 0xc]
lea edi, [esp + 0xc4]
call fcn.00468f66
lea edi, [esp + 0xa0]
lea esi, [esp + 0xc4]
call fcn.00468f66
movzx ecx, byte [esp + 0x23]
test cl, cl
je 0x4c8481
mov eax, dword [esp + 0xec]
mov ecx, dword [eax + 0xac]
test ecx, ecx
je 0x4c834e
lea ecx, [eax + 0xa8]
mov edx, dword [esp + 0xb4]
mov ebx, dword [esp + 0xb8]
mov ebp, dword [esp + 0xbc]
movzx esi, byte [esp + 0xc0]
mov dword [esp], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
xchg esi, eax
mov byte [esp + 0x14], al
xchg esi, eax
call fcn.004c8930
movzx eax, byte [esp + 0x18]
test al, al
je 0x4c8347
mov ecx, dword [esp + 0x5c]
dec ecx
mov edx, ecx
neg ecx
sar ecx, 0x1f
and ecx, 4
mov eax, edx
mov edx, dword [esp + 0x74]
add ecx, edx
mov edx, dword [esp + 0x58]
dec edx
mov edi, eax
mov eax, ecx
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x78]
mov ecx, edx
mov edx, dword [esp + 0x60]
jmp 0x4c8219
mov eax, dword [esp + 0xec]
mov dword [esp], eax
call fcn.004c8bd0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
test ecx, ecx
seta dl
sete bl
test eax, eax
xchg ebp, ebx
seta bl
xchg ebp, ebx
and ebx, ebp
or ebx, edx
test bl, bl
je 0x4c83da
mov edx, dword [esp + 0x60]
inc edx
mov ebx, dword [esp + 0x64]
cmp ebx, edx
jb 0x4c838a
mov ebp, dword [esp + 0x78]
jmp 0x4c83cc
mov dword [esp + 0x30], eax
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x52ac80]
mov dword [esp + 0x10], eax
call fcn.0044f350
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
lea esi, [ebp + edx*8 - 8]
lea edi, [ebp + edx*8 - 4]
mov dword [edi], ecx
mov dword [esi], eax
jmp 0x4c83e6
mov ebx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
mov ebp, dword [esp + 0x78]
inc edx
mov esi, dword [esp + 0xa0]
mov eax, dword [esp + 0xa4]
cmp ebx, edx
jae 0x4c8437
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], esi
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x52ac80]
mov dword [esp + 0x10], eax
call fcn.0044f350
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
lea ecx, [ebp + edx*8 - 8]
mov dword [ecx], esi
lea esi, [ebp + edx*8 - 4]
mov dword [esi], eax
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0x58]
cmp ecx, eax
jb 0x4c88d5
mov dword [esp + 0x64], eax
mov esi, dword [esp + 0x5c]
sub esi, eax
mov edi, esi
xchg esi, ebx
neg ebx
xchg esi, ebx
shl eax, 2
sar esi, 0x1f
and eax, esi
mov esi, dword [esp + 0x64]
sub ecx, esi
mov esi, dword [esp + 0x74]
add eax, esi
jmp 0x4c8219
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.004c6820
mov eax, dword [esp + 8]
test eax, eax
jne 0x4c855d
mov eax, dword [esp + 0xec]
mov dword [esp], eax
call fcn.004c8bd0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
test ecx, ecx
seta dl
sete bl
test eax, eax
xchg ebp, ebx
seta bl
xchg ebp, ebx
and ebx, ebp
or ebx, edx
test bl, bl
je 0x4c852c
mov edx, dword [esp + 0x60]
inc edx
mov ebx, dword [esp + 0x64]
cmp ebx, edx
jb 0x4c84dc
mov ebp, dword [esp + 0x78]
jmp 0x4c851e
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x52ac80]
mov dword [esp + 0x10], eax
call fcn.0044f350
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
lea esi, [ebp + edx*8 - 8]
lea edi, [ebp + edx*8 - 4]
mov dword [edi], ecx
mov dword [esi], eax
jmp 0x4c8538
mov ebx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
mov ebp, dword [esp + 0x78]
mov eax, dword [esp + 0x5c]
lea ecx, [eax - 1]
mov eax, ecx
neg eax
sar eax, 0x1f
and eax, 4
mov esi, dword [esp + 0x74]
add eax, esi
mov esi, dword [esp + 0x58]
dec esi
mov edi, ecx
mov ecx, esi
jmp 0x4c8219
mov dword [esp + 0x44], eax
movzx ecx, byte [esp + 0x10]
mov byte [esp + 0x21], cl
mov edx, dword [esp + 0xec]
lea ebx, [edx + 0xa8]
mov dword [esp + 0x70], ebx
mov ebp, dword [esp + 4]
mov dword [esp + 0x68], ebp
mov esi, dword [esp + 0xc]
mov dword [esp + 0x48], esi
mov dword [esp], ebx
mov edi, dword [esp + 0x4c]
mov dword [esp + 4], edi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], esi
mov byte [esp + 0x14], cl
call fcn.004c8930
movzx eax, byte [esp + 0x18]
test al, al
je 0x4c85e5
mov eax, dword [esp + 0x5c]
lea ecx, [eax - 1]
mov eax, ecx
neg eax
sar eax, 0x1f
and eax, 4
mov edx, dword [esp + 0x74]
add eax, edx
mov edx, dword [esp + 0x58]
dec edx
mov edi, ecx
mov ecx, edx
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x78]
jmp 0x4c8219
mov eax, dword [esp + 0xec]
mov dword [esp], eax
call fcn.004c8bd0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
test ecx, ecx
sete dl
seta bl
test eax, eax
xchg ebp, ebx
seta bl
xchg ebp, ebx
and ebp, edx
or ebx, ebp
test bl, bl
je 0x4c8678
mov edx, dword [esp + 0x60]
inc edx
mov ebx, dword [esp + 0x64]
cmp ebx, edx
jb 0x4c8628
mov ebp, dword [esp + 0x78]
jmp 0x4c866a
mov dword [esp + 0x38], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x52ac80]
mov dword [esp + 0x10], eax
call fcn.0044f350
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
lea esi, [ebp + edx*8 - 8]
lea edi, [ebp + edx*8 - 4]
mov dword [edi], ecx
mov dword [esi], eax
jmp 0x4c8684
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x78]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x60], edx
lea edi, [esp + 0xc4]
xor eax, eax
call fcn.00468aa7
mov ecx, dword [esp + 0xec]
mov esi, dword [ecx + 0x94]
lea ecx, [0x52bd60]
mov dword [esp], ecx
mov dword [esp + 4], esi
mov esi, dword [esp + 0x4c]
mov dword [esp + 8], esi
call fcn.0040eee0
movzx ecx, byte [esp + 0x10]
mov byte [esp + 0x22], cl
mov esi, dword [esp + 0xc]
lea edi, [esp + 0xc4]
call fcn.00468f66
lea edi, [esp + 0x7c]
lea esi, [esp + 0xc4]
call fcn.00468f66
movzx ecx, byte [esp + 0x22]
test cl, cl
je 0x4c87a6
mov edx, dword [esp + 0x60]
inc edx
mov ebx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x80]
mov esi, dword [esp + 0x64]
cmp esi, edx
jb 0x4c8719
mov eax, dword [esp + 0x6c]
jmp 0x4c875f
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov dword [esp + 0xc], 1
lea eax, [0x52ac80]
mov dword [esp + 0x10], eax
call fcn.0044f350
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov eax, ebp
mov esi, ebx
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x54]
lea ecx, [eax + edx*8 - 8]
mov dword [ecx], ebx
lea ebx, [eax + edx*8 - 4]
mov dword [ebx], ebp
mov ebx, dword [esp + 0x88]
mov ecx, dword [esp + 0x58]
cmp ecx, ebx
jb 0x4c88ce
mov dword [esp + 0x64], ebx
mov ebp, dword [esp + 0x5c]
sub ebp, ebx
mov edi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
shl ebx, 2
sar ebp, 0x1f
and ebx, ebp
mov ebp, dword [esp + 0x64]
sub ecx, ebp
mov ebp, dword [esp + 0x74]
add ebx, ebp
jmp 0x4c8808
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 0x21]
mov byte [esp + 0x14], al
call fcn.004c8930
mov eax, dword [esp + 0x5c]
lea ebp, [eax - 1]
mov eax, ebp
neg eax
sar eax, 0x1f
and eax, 4
mov ecx, dword [esp + 0x74]
lea ebx, [ecx + eax]
mov eax, dword [esp + 0x58]
lea ecx, [eax - 1]
mov edi, ebp
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
mov eax, dword [esp + 0x6c]
mov ebp, eax
mov eax, ebx
mov ebx, esi
jmp 0x4c8219
mov eax, dword [esp + 0xec]
mov dword [esp], eax
call fcn.004c8bd0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
test ecx, ecx
seta dl
sete bl
test eax, eax
xchg ebp, ebx
seta bl
xchg ebp, ebx
and ebx, ebp
or ebx, edx
test bl, bl
je 0x4c88a6
mov edx, dword [esp + 0x60]
inc edx
mov ebx, dword [esp + 0x64]
cmp ebx, edx
jb 0x4c8856
mov ebp, dword [esp + 0x78]
jmp 0x4c8898
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x52ac80]
mov dword [esp + 0x10], eax
call fcn.0044f350
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
lea edi, [ebp + edx*8 - 8]
lea esi, [ebp + edx*8 - 4]
mov dword [esi], ecx
mov dword [edi], eax
jmp 0x4c88b2
mov ebx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x108], ebp
mov dword [esp + 0x10c], edx
mov dword [esp + 0x110], ebx
add esp, 0xe8
ret
mov eax, ebx
call fcn.00468930
call fcn.00468930
nop
call fcn.00467460
jmp fcn.004c8180