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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x14]
cmp eax, dword [ecx + 8]
jbe 0x4c7957
sub esp, 0x94
mov edx, dword [esp + 0x98]
mov ebx, dword [edx + 0x18]
mov ebp, dword [edx + 0x1c]
mov esi, dword [edx + 0x20]
test ebp, ebp
je 0x4c7923
mov ecx, dword [ebx + 4]
mov eax, ebx
mov ebx, dword [ebx]
cmp ecx, 2
jl 0x4c78fe
cmp byte [ebx], 0x2d
jne 0x4c78fe
lea edi, [edx + 0x18]
cmp byte [ebx + 1], 0x2d
jne 0x4c78e8
cmp ecx, 2
je 0x4c7899
mov dword [esp + 0x3c], eax
mov eax, 2
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x2c]
cmp esi, ecx
ja 0x4c794f
mov dword [esp + 0x28], ecx
sub ecx, esi
mov dword [esp + 0x30], ecx
neg ecx
sar ecx, 0x1f
and esi, ecx
mov ecx, edx
lea edx, [esi + ebx]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x30]
test edx, edx
je 0x4c7809
movzx esi, byte [ebx + esi]
xchg esi, eax
cmp al, 0x2d
xchg esi, eax
je 0x4c7809
xchg esi, eax
cmp al, 0x3d
xchg esi, eax
je 0x4c7809
lea ebx, [ebp - 1]
mov dword [ecx + 0x1c], ebx
mov ebx, dword [esp + 0x38]
dec ebx
mov dword [ecx + 0x20], ebx
mov ebp, dword [0x71e9f0]
neg ebx
sar ebx, 0x1f
and ebx, 8
add eax, ebx
test ebp, ebp
jne 0x4c77ff
mov dword [ecx + 0x18], eax
mov dword [esp + 0x60], edi
mov ebx, dword [esp + 0x50]
mov eax, 1
jmp 0x4c7141
inc eax
cmp edx, eax
jle 0x4c77f2
jbe 0x4c7948
lea ebp, [eax + ebx]
cmp byte [ebp], 0x3d
jne 0x4c7140
sub edx, eax
dec edx
mov ebp, edx
neg edx
sar edx, 0x1f
lea esi, [eax + 1]
and esi, edx
lea edx, [ebx + esi]
mov esi, 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x4c], edx
xchg esi, eax
mov byte [esp + 0x23], al
xchg esi, eax
mov edi, dword [ecx + 0x14]
lea ebp, [0x5a6da0]
mov dword [esp], ebp
mov dword [esp + 4], edi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
call fcn.0040f870
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
movzx ecx, byte [esp + 0x14]
test cl, cl
jne 0x4c72a1
mov eax, dword [esp + 0x30]
cmp eax, 4
jne 0x4c7298
mov ecx, dword [esp + 0x50]
cmp dword [ecx], 0x706c6568
jne 0x4c7202
mov eax, dword [esp + 0x98]
mov dword [esp], eax
call fcn.004c7000
mov eax, dword [0x701278]
mov ecx, dword [0x70127c]
mov byte [esp + 0x9c], 0
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
add esp, 0x94
ret
cmp eax, 1
jne 0x4c720c
cmp byte [ecx], 0x68
je 0x4c71ca
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00409170
mov eax, dword [esp + 8]
lea ecx, [0x5a5ba0]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x98]
mov dword [esp], eax
lea eax, [0x5d9428]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x22
lea eax, [esp + 0x64]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 1
call fcn.004c6f10
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x9c], 0
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
add esp, 0x94
ret
mov ecx, dword [esp + 0x50]
jmp 0x4c7202
mov dword [esp + 0x54], eax
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
lea ebx, [0x5b02c0]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00409490
movzx eax, byte [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test al, al
jne 0x4c77d0
xor eax, eax
test al, al
je 0x4c75a3
movzx eax, byte [esp + 0x23]
test al, al
je 0x4c74ae
mov eax, dword [ecx + 0x14]
mov dword [esp], edx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x24]
mov dword [esp + 8], edx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test eax, eax
jne 0x4c73cb
mov eax, dword [esp + 0x98]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4c7392
mov eax, dword [eax + 0x10]
lea ecx, [0x5a6da0]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], eax
call fcn.0040fbf0
mov edi, dword [esp + 0x10]
test byte [edi], al
mov eax, dword [0x71e9f0]
test eax, eax
jne 0x4c7387
mov eax, dword [esp + 0x54]
mov dword [edi], eax
mov byte [esp + 0x9c], 1
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
add esp, 0x94
ret
mov eax, dword [esp + 0x54]
call fcn.0045e220
jmp 0x4c7362
call fcn.0040c3f0
mov eax, dword [0x71e9f0]
mov ecx, dword [esp]
test eax, eax
jne 0x4c73b3
mov eax, dword [esp + 0x98]
mov dword [eax + 0x10], ecx
jmp 0x4c7327
mov edx, dword [esp + 0x98]
lea edi, [edx + 0x10]
mov eax, ecx
call fcn.0045e220
mov eax, edx
jmp 0x4c7327
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], edx
lea edi, [esp + 0x7c]
xor eax, eax
call fcn.0045e49a
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], ecx
call fcn.00409170
mov ecx, dword [esp + 8]
lea edx, [0x5a5ba0]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 4], ecx
call fcn.00409170
mov ecx, dword [esp + 8]
lea edx, [0x5a5ba0]
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x4c743e
mov ecx, dword [ecx + 4]
mov dword [esp + 0x8c], ecx
mov eax, dword [esp + 0x58]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x98]
mov dword [esp], eax
lea eax, [0x5d9df8]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x24
lea eax, [esp + 0x7c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 3
call fcn.004c6f10
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x9c], 0
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
add esp, 0x94
ret
mov eax, dword [ecx + 0x14]
mov dword [esp], edx
lea ecx, [0x5d0114]
mov dword [esp + 4], ecx
mov dword [esp + 8], 4
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test eax, eax
je 0x4c7319
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call fcn.00409170
mov eax, dword [esp + 8]
lea ecx, [0x5a5ba0]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4c759f
mov ecx, dword [eax + 4]
mov dword [esp + 0x74], ecx
mov eax, dword [esp + 0x58]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x98]
mov dword [esp], eax
lea eax, [0x5d6dcc]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x1b
lea eax, [esp + 0x6c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], 2
call fcn.004c6f10
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x9c], 0
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
add esp, 0x94
ret
mov ecx, eax
jmp 0x4c7535
movzx ecx, byte [esp + 0x23]
test cl, cl
je 0x4c776d
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x4c]
test cl, cl
je 0x4c76d9
mov dword [esp + 0x24], eax
mov dword [esp + 0x4c], edx
mov ecx, dword [esp + 0x54]
mov ebx, dword [ecx + 0x10]
mov ebp, dword [ecx + 0x14]
mov ebx, dword [ebx + 0x10]
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call ebx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test eax, eax
je 0x4c7319
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], edx
lea edi, [esp + 0x7c]
xor eax, eax
call fcn.0045e49a
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], ecx
call fcn.00409170
mov ecx, dword [esp + 8]
lea edx, [0x5a5ba0]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 4], ecx
call fcn.00409170
mov ecx, dword [esp + 8]
lea edx, [0x5a5ba0]
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x4c7669
mov ecx, dword [ecx + 4]
mov dword [esp + 0x8c], ecx
mov eax, dword [esp + 0x58]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x98]
mov dword [esp], eax
lea eax, [0x5d8ef4]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x21
lea eax, [esp + 0x7c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 3
call fcn.004c6f10
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x9c], 0
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
add esp, 0x94
ret
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call fcn.00409170
mov eax, dword [esp + 8]
lea ecx, [0x5a5ba0]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x98]
mov dword [esp], eax
lea eax, [0x5d6d60]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x1b
lea eax, [esp + 0x64]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 1
call fcn.004c6f10
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x9c], 0
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
add esp, 0x94
ret
mov edx, dword [esp + 0x98]
mov ebx, dword [edx + 0x18]
mov ebp, dword [edx + 0x1c]
mov esi, dword [edx + 0x20]
test ebp, ebp
jle 0x4c75b0
mov ecx, dword [ebx]
mov eax, ecx
mov ecx, dword [ebx + 4]
dec ebp
mov dword [edx + 0x1c], ebp
lea ebp, [esi - 1]
mov dword [edx + 0x20], ebp
mov esi, dword [0x71e9f0]
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, 8
add ebx, ebp
test esi, esi
jne 0x4c77bf
mov dword [edx + 0x18], ebx
mov edx, eax
mov eax, ecx
mov ecx, 1
jmp 0x4c75b8
mov edi, dword [esp + 0x60]
mov ebp, eax
mov eax, ebx
call fcn.0045e220
mov eax, ebp
jmp 0x4c77b1
mov dword [esp + 0x58], edx
mov dword [esp + 0x34], ecx
mov eax, dword [ecx + 0x10]
mov dword [esp], edx
call eax
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x58]
jmp 0x4c72d8
mov eax, edx
xor esi, esi
xor ebp, ebp
xor edx, edx
jmp 0x4c716f
call fcn.0045e220
jmp 0x4c7131
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp], ebx
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
call fcn.00409170
mov eax, dword [esp + 8]
lea ecx, [0x5a5ba0]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x98]
mov dword [esp], eax
lea eax, [0x5d3be5]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x13
lea eax, [esp + 0x64]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 1
call fcn.004c6f10
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x9c], 0
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
add esp, 0x94
ret
lea ecx, [ebp - 1]
mov dword [edx + 0x1c], ecx
lea ecx, [esi - 1]
mov dword [edx + 0x20], ecx
mov ebx, dword [0x71e9f0]
neg ecx
sar ecx, 0x1f
and ecx, 8
add eax, ecx
test ebx, ebx
jne 0x4c78e1
mov dword [edx + 0x18], eax
mov byte [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
add esp, 0x94
ret
call fcn.0045e220
jmp 0x4c78bc
mov dword [esp + 0x44], eax
mov eax, 1
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x44]
jmp 0x4c70b8
mov byte [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
add esp, 0x94
ret
mov byte [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
add esp, 0x94
ret
mov ecx, edx
call fcn.0045e2a0
mov eax, esi
call fcn.0045e300
nop
call fcn.0045ccc0
jmp fcn.004c7040