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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4c2943
sub esp, 0x74
mov ecx, dword [esp + 0x80]
cmp ecx, 1
jb 0x4c2938
lea edx, [ecx - 1]
mov dword [esp + 0x38], edx
mov ebx, edx
neg edx
sar edx, 0x1f
and edx, 1
mov dword [esp + 0x50], edx
mov ebp, dword [esp + 0x7c]
lea esi, [ebp + edx]
mov dword [esp + 0x5c], esi
nop
mov eax, ebx
mov ebx, dword [esp + 0x78]
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x4c290b
mov dword [esp + 0x64], edi
mov esi, dword [0x98ef80]
mov edx, dword [edi + 0x10]
test esi, esi
jne 0x4c28d8
mov dword [ebx + 0x10], edx
mov edx, eax
xor eax, eax
call fcn.00450571
mov eax, dword [esp + 0x64]
mov byte [eax], 4
movzx ecx, word [ebx]
mov word [eax + 2], cx
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 2
lea edi, [eax + 0x14]
mov ecx, dword [0x98ef80]
lea esi, [eax + 0x20]
test ecx, ecx
jne 0x4c28bc
mov dword [eax + 0x14], esi
mov ecx, dword [esp + 0x80]
cmp ecx, 1
je 0x4c28ac
mov esi, dword [esp + 0x50]
movzx esi, byte [ebp + esi]
xchg esi, eax
cmp al, 0x5e
xchg esi, eax
jne 0x4c28ac
lea edx, [ecx - 2]
mov esi, edx
neg edx
sar edx, 0x1f
and edx, 1
mov ecx, dword [esp + 0x5c]
add ecx, edx
movzx edx, word [ebx]
test dx, 4
jne 0x4c227c
mov edx, dword [eax + 0x14]
mov dword [eax + 0x18], 2
xor ebp, ebp
mov dword [edx + ebp*4], 0xa
mov dword [edx + ebp*4 + 4], 0xa
mov edx, 0xffffffff
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x3c], edx
mov ebp, dword [eax + 0x1c]
mov edx, dword [eax + 0x18]
mov ebx, dword [eax + 0x14]
mov dword [esp + 0x54], eax
mov eax, 1
mov byte [esp + 0x37], al
mov eax, dword [esp + 0x54]
jmp 0x4c22c5
mov ebx, dword [esp + 0x78]
xor ebp, ebp
xchg ebp, eax
mov byte [esp + 0x37], al
xchg ebp, eax
mov ebx, edx
mov ebp, eax
mov edx, ecx
mov eax, dword [esp + 0x68]
mov ecx, edi
mov edi, dword [esp + 0x70]
mov dword [esp + 0x4c], ebp
test esi, esi
jne 0x4c27b2
mov dword [esp + 0x40], esi
mov dword [esp + 0x60], ecx
je 0x4c27a9
cmp byte [ecx], 0x2d
jne 0x4c27a0
mov edi, dword [esp + 0x78]
movzx eax, word [edi]
test ax, 0x40
jne 0x4c2302
movzx eax, byte [esp + 0x37]
test al, al
je 0x4c26b8
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x48], edx
cmp esi, 2
jle 0x4c231e
cmp byte [ecx], 0x5b
jne 0x4c231e
cmp byte [ecx + 1], 0x3a
je 0x4c2624
mov dword [esp], edi
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebp
call fcn.004c19e0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
test ebp, ebp
jne 0x4c25fc
test edx, edx
jne 0x4c22a9
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x40]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x14], esi
call fcn.004c1450
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
test eax, eax
je 0x4c23c1
mov edi, edx
mov esi, ecx
mov ecx, ebp
mov edx, eax
mov eax, ebx
jmp 0x4c22a9
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x40]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0x80]
mov dword [esp + 0x10], ebp
call fcn.004c1310
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
test edx, edx
jne 0x4c25d4
cmp ebx, 2
jl 0x4c2421
cmp byte [ebp], 0x2d
jne 0x4c2421
cmp byte [ebp + 1], 0x5d
jne 0x4c24a8
mov ecx, eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x5c], ebp
mov edx, dword [esp + 0x78]
movzx esi, word [edx]
test si, 1
jne 0x4c2476
mov edx, dword [esp + 0x6c]
mov dword [esp], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.004c2b30
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + 0x38]
jmp 0x4c22a9
mov edx, dword [esp + 0x6c]
mov dword [esp], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.004c2c50
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
jmp 0x4c2469
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x78]
mov dword [esp], eax
lea ecx, [ebp + 1]
mov dword [esp + 4], ecx
lea ecx, [ebx - 1]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x10], edx
call fcn.004c1310
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
test edx, edx
jne 0x4c25ac
mov esi, dword [esp + 0x44]
cmp eax, esi
jl 0x4c2504
mov ecx, esi
jmp 0x4c2423
mov ecx, dword [esp + 0x40]
mov edx, ecx
sub ecx, ebx
cmp ecx, edx
ja 0x4c292e
mov dword [esp + 0x40], ecx
lea eax, [0x67fba0]
mov dword [esp], eax
call fcn.0040a3f0
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x1d
mov eax, dword [0x98ef80]
test eax, eax
jne 0x4c259f
lea ecx, [0x6c2e75]
mov dword [edi], ecx
mov ecx, dword [esp + 0x40]
mov dword [edi + 0xc], ecx
mov ecx, dword [0x98ef80]
test ecx, ecx
jne 0x4c2589
mov eax, dword [esp + 0x60]
mov dword [edi + 8], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
lea eax, [0x71dfe0]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], edi
add esp, 0x74
ret
lea ecx, [edi + 8]
mov eax, edi
mov edi, ecx
mov edx, eax
mov eax, dword [esp + 0x60]
call fcn.004502f0
mov edi, edx
jmp 0x4c255b
lea eax, [0x6c2e75]
call fcn.004502f0
jmp 0x4c2543
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], ecx
add esp, 0x74
ret
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], ecx
add esp, 0x74
ret
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], ebx
add esp, 0x74
ret
mov dword [esp], edi
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebp
call fcn.004c15a0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
test ecx, ecx
jne 0x4c2690
test edi, edi
je 0x4c2673
mov eax, edx
mov ecx, esi
mov edx, edi
mov edi, ebp
mov esi, ebx
jmp 0x4c22a9
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x78]
jmp 0x4c231e
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], eax
add esp, 0x74
ret
cmp esi, 1
jne 0x4c2794
mov eax, 1
test al, al
je 0x4c2302
lea eax, [esi - 1]
mov edx, eax
neg eax
sar eax, 0x1f
and eax, 1
add eax, ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00459c80
mov eax, dword [esp + 0xc]
lea ecx, [eax + 1]
mov edx, dword [esp + 0x40]
cmp ecx, edx
ja 0x4c2933
mov dword [esp + 0x50], ecx
lea eax, [0x67fba0]
mov dword [esp], eax
call fcn.0040a3f0
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x1d
mov eax, dword [0x98ef80]
test eax, eax
jne 0x4c2787
lea ecx, [0x6c2e75]
mov dword [edi], ecx
mov ecx, dword [esp + 0x50]
mov dword [edi + 0xc], ecx
mov ecx, dword [0x98ef80]
test ecx, ecx
jne 0x4c2771
mov eax, dword [esp + 0x60]
mov dword [edi + 8], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
lea eax, [0x71dfe0]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], edi
add esp, 0x74
ret
lea ecx, [edi + 8]
mov eax, edi
mov edi, ecx
mov edx, eax
mov eax, dword [esp + 0x60]
call fcn.004502f0
mov edi, edx
jmp 0x4c2743
lea eax, [0x6c2e75]
call fcn.004502f0
jmp 0x4c272b
cmp byte [ecx + 1], 0x5d
setne al
jmp 0x4c26c6
mov edi, dword [esp + 0x78]
jmp 0x4c2302
mov edi, dword [esp + 0x78]
jmp 0x4c2302
cmp byte [ecx], 0x5d
je 0x4c27be
test esi, esi
jmp 0x4c22d1
movzx ebp, byte [esp + 0x37]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x4c27d4
test esi, esi
mov ebp, dword [esp + 0x4c]
jmp 0x4c22d1
mov dword [eax + 0x18], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + 0x1c], edx
lea edx, [esi - 1]
mov dword [esp + 0x38], edx
neg edx
sar edx, 0x1f
and edx, 1
add ecx, edx
mov dword [esp + 0x5c], ecx
mov edx, dword [0x98ef80]
test edx, edx
jne 0x4c28a0
mov dword [eax + 0x14], ebx
mov dword [esp], edi
call fcn.004c2950
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x3c]
test ebx, ebx
jl 0x4c2882
mov ebx, dword [esp + 0x68]
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x1c], ecx
mov ecx, dword [0x98ef80]
test ecx, ecx
jne 0x4c2877
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.004bbac0
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
add esp, 0x74
ret
mov edi, dword [esp + 0x70]
call fcn.004502f0
jmp 0x4c2837
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.004c3580
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
jmp 0x4c2820
mov eax, ebx
call fcn.004502f0
jmp 0x4c2804
mov esi, edx
mov ecx, dword [esp + 0x5c]
mov edx, 1
jmp 0x4c2281
mov ecx, eax
mov eax, esi
call fcn.004502f0
mov esi, dword [esp + 0x80]
cmp esi, 1
mov eax, ecx
mov ecx, esi
jmp 0x4c222a
lea ecx, [ebx + 0x10]
mov eax, edi
mov edi, ecx
mov ebp, eax
mov eax, edx
call fcn.004502f0
lea ecx, [0x6a09e0]
mov dword [esp], ecx
mov dword [esp + 4], ebp
call fcn.004105b0
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x7c]
jmp 0x4c21ed
lea eax, [0x6a09e0]
mov dword [esp], eax
call fcn.0040a3f0
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x7c]
jmp 0x4c21f1
call fcn.00450390
call fcn.00450390
mov eax, 1
call fcn.004503d0
nop
call fcn.0044eab0
jmp fcn.004c2170