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

Disassembly:
mov ecx, dword [0x5db520]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4c900a
sub esp, 0x70
mov eax, dword [0x5bc5c4]
test eax, eax
je 0x4c8c2d
mov eax, dword [eax]
nop
mov dword [esp], eax
call fcn.004a10d0
mov eax, dword [0x5db640]
test eax, eax
je 0x4c8c23
mov eax, dword [0x5bc5c4]
call fcn.0046dad0
mov dword [edi], eax
mov dword [0x5bc5c4], 0
mov eax, dword [esp + 0x74]
test eax, 0x100
jne 0x4c8c3c
xor ecx, ecx
jmp 0x4c8cb1
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call fcn.004c8220
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x442
mov dword [esp + 0xc], 0x1b6
call fcn.004a0980
mov eax, dword [0x5db640]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
test eax, eax
jne 0x4c8c89
mov eax, dword [esp + 0x74]
test eax, 0x100
jmp 0x4c8ca2
call fcn.0046dae0
mov dword [edi], ecx
mov eax, dword [0x5bc5c4]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x74]
test eax, 0x100
mov dword [0x5bc5c4], ecx
setne cl
test edx, edx
je 0x4c8cb1
xor ecx, ecx
mov byte [esp + 0x22], cl
mov edx, dword [0x5db4f4]
test eax, 0x800
setne bl
test edx, edx
jne 0x4c8cc9
xor ebx, ebx
mov byte [esp + 0x23], bl
mov eax, dword [0x5b53d8]
test byte [eax], al
add eax, 0x18
mov dword [esp], eax
mov dword [esp + 4], 6
call fcn.004012f0
lea edi, [esp + 0x50]
xor eax, eax
call fcn.0046dca8
movzx eax, byte [esp + 0x23]
test al, al
je 0x4c8d12
mov ebx, dword [0x5bc534]
lea ebp, [0x51dbd4]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebx
jmp 0x4c8d18
lea ebp, [0x51dbd4]
movzx eax, al
movzx ebx, byte [esp + 0x22]
test bl, bl
je 0x4c8d40
cmp eax, 4
jae 0x4c8fff
lea ebx, [esp + eax*8 + 0x50]
lea esi, [esp + eax*8 + 0x54]
mov edi, dword [0x5bc5c4]
mov dword [ebx], ebp
mov dword [esi], edi
inc eax
mov ebx, dword [esp + 0x74]
test ebx, 0x400
je 0x4c8d73
cmp eax, 4
jae 0x4c8ff5
lea ebp, [esp + eax*8 + 0x50]
lea esi, [esp + eax*8 + 0x54]
mov edi, dword [0x5b53dc]
mov ecx, ebx
lea ebx, [0x51dcd0]
mov dword [ebp], ebx
mov dword [esi], edi
inc eax
jmp 0x4c8d75
mov ecx, ebx
test ecx, 0x200
je 0x4c8da0
cmp eax, 4
jae 0x4c8feb
lea ebx, [esp + eax*8 + 0x50]
lea ebp, [esp + eax*8 + 0x54]
mov esi, dword [0x5b53e0]
lea edi, [0x51dce0]
mov dword [ebx], edi
mov dword [ebp], esi
inc eax
test eax, eax
je 0x4c8ddc
cmp eax, 4
ja 0x4c8fdf
mov dword [esp + 0x24], eax
nop
lea ecx, [0x4dcc60]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], eax
call fcn.00468cf0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
mov edx, ecx
xor ebx, ebx
xor ebp, ebp
jmp 0x4c8e24
mov eax, dword [0x5bc768]
mov ecx, dword [0x5bc76c]
mov edx, dword [0x5b53d8]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004c4c40
mov eax, dword [0x5b53d8]
test byte [eax], al
add eax, 0x18
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.004012f0
add esp, 0x70
ret
inc ebx
mov esi, dword [esp + 0x24]
mov edx, esi
mov dword [esp + 0x2c], ebp
cmp ebx, edx
jge 0x4c8f79
lea esi, [esp + ebx*8 + 0x50]
mov edi, dword [esi]
mov esi, dword [esi + 4]
mov dword [esp + 0x40], esi
lea edx, [0x51dc80]
cmp edi, edx
je 0x4c8e4c
mov esi, 0
mov dword [esp + 0x3c], ebx
je 0x4c8ed8
inc ebp
cmp ecx, ebp
jae 0x4c8e9b
mov dword [esp + 0x28], edi
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x4dcc60]
mov dword [esp + 0x10], eax
call fcn.00468da0
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea edx, [0x51dc80]
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x28]
lea esi, [eax + ebp*8 - 8]
mov dword [esi], edi
mov esi, dword [0x5db640]
lea edi, [eax + ebp*8 - 4]
test esi, esi
je 0x4c8ecd
mov esi, edi
call fcn.0046dae0
mov edx, dword [esp + 0x40]
mov dword [edi], edx
mov ebx, dword [esi]
mov dword [edi + 4], ebx
lea edx, [0x51dc80]
mov ebx, dword [esp + 0x3c]
mov edi, esi
mov esi, dword [esp + 0x40]
mov dword [edi], esi
jmp 0x4c8e1d
mov edi, dword [esi + 4]
lea edx, [ebp + edi]
mov esi, dword [esi]
cmp ecx, edx
jae 0x4c8f23
mov dword [esp + 0x38], edi
mov dword [esp + 0x4c], esi
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
lea eax, [0x4dcc60]
mov dword [esp + 0x10], eax
call fcn.00468da0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x30], ecx
lea ebx, [0x4dcc60]
mov dword [esp], ebx
sub edx, ebp
sub ecx, ebp
neg ecx
shl ebp, 3
sar ecx, 0x1f
and ebp, ecx
lea ecx, [eax + ebp]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
call fcn.004667d0
lea edx, [0x51dc80]
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x44]
jmp 0x4c8e1d
mov dword [esp + 0x34], ecx
mov dword [esp + 0x48], eax
lea eax, [0x4dd640]
mov dword [esp], eax
call fcn.0040bc50
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [0x5db640]
test ecx, ecx
jne 0x4c8fb1
mov ecx, dword [esp + 0x48]
jmp 0x4c8fbc
call fcn.0046dad0
mov ecx, dword [esp + 0x48]
mov dword [edi], ecx
mov dword [eax], ecx
mov ecx, dword [0x5b53d8]
mov dword [esp], ecx
lea ecx, [0x51dc80]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004c4c40
jmp 0x4c8e19
mov ecx, eax
mov edx, 4
call fcn.0046db90
mov ecx, 4
call fcn.0046db50
mov ecx, 4
call fcn.0046db50
mov ecx, 4
call fcn.0046db50
nop
call fcn.0046c6d0
jmp fcn.004c8be0