Function at 0x4c6640
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 0x4c6f9e
sub esp, 0x94
mov ecx, dword [esp + 0xa8]
cmp ecx, 2
jne 0x4c6cc2
mov edx, dword [esp + 0xa4]
cmp word [edx], 0x7069
jne 0x4c6c76
mov ebx, dword [esp + 0xb0]
test ebx, ebx
je 0x4c6c6d
mov eax, dword [esp + 0xac]
xor ebp, ebp
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
lea esi, [0x4cf490]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ebp
test ebx, ebx
jne 0x4c69d5
lea edi, [esp + 0x6c]
xor eax, eax
call fcn.00459a8b
mov ecx, dword [esp + 0xa8]
cmp ecx, 2
jne 0x4c67ee
cmp word [edx], 0x7069
jne 0x4c6f4d
lea eax, [0x526260]
mov dword [esp], eax
call fcn.0040b120
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov ecx, dword [0x73c0c0]
test ecx, ecx
jne 0x4c67e4
mov dword [edi], eax
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov dword [edi + 0x10], ecx
mov ecx, dword [0x73c0c0]
test ecx, ecx
jne 0x4c67d1
mov dword [edi + 0xc], eax
lea eax, [0x583030]
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], edi
lea ecx, [0x51af00]
mov dword [esp], ecx
call fcn.0040b120
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
mov ecx, dword [0x73c0c0]
test ecx, ecx
jne 0x4c67bf
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], 1
mov dword [esp + 0xbc], 1
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
add esp, 0x94
ret
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x4c]
call fcn.00459850
mov eax, ecx
jmp 0x4c6785
lea ecx, [edi + 0xc]
mov edx, edi
mov edi, ecx
call fcn.00459850
mov edi, edx
jmp 0x4c674e
call fcn.00459850
jmp 0x4c6732
mov dword [esp + 0x34], ebp
cmp ecx, 3
je 0x4c6948
cmp ecx, 4
jne 0x4c6f49
mov dword [esp], edx
mov dword [esp + 4], ecx
lea eax, [0x53f458]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 4
call fcn.004025c0
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x4c68bb
mov eax, dword [esp + 0xa4]
cmp dword [eax], 0x34706374
jne 0x4c68ae
lea eax, [0x52b060]
mov dword [esp], eax
call fcn.0040b120
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov ecx, dword [0x73c0c0]
test ecx, ecx
jne 0x4c68a7
mov dword [edi], eax
mov ecx, dword [esp + 0x34]
mov dword [edi + 0xc], ecx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov dword [edi + 0x14], ecx
mov ecx, dword [0x73c0c0]
test ecx, ecx
jne 0x4c6897
mov dword [edi + 0x10], eax
lea eax, [0x583050]
jmp 0x4c6754
lea ecx, [edi + 0x10]
mov edx, edi
mov edi, ecx
call fcn.00459850
mov edi, edx
jmp 0x4c688c
call fcn.00459850
jmp 0x4c686d
cmp dword [eax], 0x36706374
je 0x4c683d
jmp 0x4c6f3e
mov eax, dword [esp + 0xa4]
cmp dword [eax], 0x34706475
jne 0x4c693b
lea eax, [0x52b0e0]
mov dword [esp], eax
call fcn.0040b120
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov ecx, dword [0x73c0c0]
test ecx, ecx
jne 0x4c6934
mov dword [edi], eax
mov ecx, dword [esp + 0x34]
mov dword [edi + 0xc], ecx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov dword [edi + 0x14], ecx
mov ecx, dword [0x73c0c0]
test ecx, ecx
jne 0x4c6924
mov dword [edi + 0x10], eax
lea eax, [0x583070]
jmp 0x4c6754
lea ecx, [edi + 0x10]
mov edx, edi
mov edi, ecx
call fcn.00459850
mov edi, edx
jmp 0x4c6919
call fcn.00459850
jmp 0x4c68fa
cmp dword [eax], 0x36706475
je 0x4c68ca
jmp 0x4c6f3e
mov dword [esp], edx
mov dword [esp + 4], ecx
lea eax, [0x53ee74]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 3
call fcn.004025c0
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x4c69a3
mov eax, dword [esp + 0xa4]
movzx ecx, word [eax]
cmp cx, 0x7069
jne 0x4c698e
cmp byte [eax + 2], 0x34
je 0x4c66fe
cmp cx, 0x7069
jne 0x4c6f3e
cmp byte [eax + 2], 0x36
je 0x4c66fe
jmp 0x4c6f3e
mov eax, dword [esp + 0xa4]
cmp word [eax], 0x6374
jne 0x4c69bb
cmp byte [eax + 2], 0x70
je 0x4c683d
cmp word [eax], 0x6475
jne 0x4c6f3e
cmp byte [eax + 2], 0x70
je 0x4c68ca
jmp 0x4c6f3e
mov dword [esp + 0x40], ebx
mov dword [esp + 0x54], eax
mov ebp, dword [esp + 0x98]
mov dword [esp], ebp
mov ebp, dword [esp + 0x9c]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0xa0]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
call fcn.004c7f40
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
test ebx, ebx
jne 0x4c6c37
mov dword [esp + 0x38], ecx
cmp ecx, 1
je 0x4c6be3
xor ebx, ebx
test bl, bl
je 0x4c6bdc
lea edi, [esp + 0x80]
mov ebx, eax
xor eax, eax
call fcn.00459a8b
mov ecx, dword [0x7268e8]
mov ebp, dword [0x7268ec]
mov eax, ebx
mov ebx, dword [0x7268f0]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebx
mov ecx, dword [esp + 0x38]
lea ebx, [ecx + 1]
cmp edx, ebx
jb 0x4c6ba6
mov ebp, dword [0x73c0c0]
lea ecx, [ecx + ecx*4]
lea edi, [eax + ecx*4]
test ebp, ebp
jne 0x4c6b6c
lea esi, [esp + 0x80]
call fcn.00459f6e
mov ecx, dword [esp + 0xa8]
test ecx, ecx
je 0x4c6b63
mov ebp, dword [esp + 0xa4]
lea esi, [ebp + ecx - 1]
cmp byte [esi], 0x34
jne 0x4c6b57
test ecx, ecx
lea esi, [0x562ecc]
je 0x4c6b53
lea ecx, [ebp + ecx - 1]
cmp byte [ecx], 0x36
jne 0x4c6b53
lea ecx, [0x562ed0]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
lea eax, [esp + 0x5c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
call fcn.004c5c50
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], edx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebp
add esp, 0x94
ret
mov ecx, esi
jmp 0x4c6ae9
test ecx, ecx
mov esi, 0
jmp 0x4c6ad8
mov ebp, dword [esp + 0xa4]
jmp 0x4c6b59
mov dword [esp + 0x50], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x3c], edx
lea eax, [0x526260]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x80]
mov dword [esp + 8], eax
call fcn.0040fb80
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x48]
jmp 0x4c6aad
lea ebp, [0x526260]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
call fcn.004419d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea ebx, [ecx + 1]
mov ecx, dword [esp + 0x38]
jmp 0x4c6a8d
mov ebx, ecx
jmp 0x4c6aad
mov dword [esp + 0x58], eax
mov dword [esp + 0x44], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov ecx, dword [0x700b08]
mov edx, dword [0x700b0c]
mov ebx, dword [0x700b10]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
call fcn.004c3b70
movzx ebx, byte [esp + 0x18]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x44]
jmp 0x4c6a3d
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebp
add esp, 0x94
ret
xor ebx, ebx
xor eax, eax
jmp 0x4c6698
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.00408960
mov eax, dword [esp + 8]
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
lea ecx, [0x5826d0]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], eax
add esp, 0x94
ret
cmp ecx, 3
je 0x4c6e90
cmp ecx, 4
je 0x4c6cd9
mov edx, dword [esp + 0xa4]
jmp 0x4c6c76
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea edx, [0x53f458]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 4
call fcn.004025c0
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x4c6e6f
mov ecx, dword [esp + 0xa4]
cmp dword [ecx], 0x34706374
jne 0x4c6e57
mov edx, dword [esp + 0xb0]
test edx, edx
jne 0x4c6d47
xor eax, eax
xor edx, edx
xor ebx, ebx
mov ecx, dword [esp + 0xa8]
mov ebp, eax
mov eax, ebx
mov ebx, edx
mov edx, dword [esp + 0xa4]
jmp 0x4c669a
mov eax, dword [esp + 0xac]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004c5fa0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
test eax, eax
jne 0x4c6e21
mov dword [esp + 0x54], ecx
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x98]
mov dword [esp], eax
mov ecx, dword [esp + 0x9c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0xa0]
mov dword [esp + 8], edx
mov esi, dword [esp + 0xa4]
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
call fcn.004c89b0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
test eax, eax
jne 0x4c6deb
mov eax, ecx
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x54]
mov ecx, dword [esp + 0xa4]
jmp 0x4c6d2e
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], edx
add esp, 0x94
ret
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], esi
add esp, 0x94
ret
cmp dword [ecx], 0x36706374
je 0x4c6d1d
mov ecx, dword [esp + 0xa8]
jmp 0x4c6cd0
mov ecx, dword [esp + 0xa4]
cmp dword [ecx], 0x34706475
je 0x4c6d1d
cmp dword [ecx], 0x36706475
je 0x4c6d1d
jmp 0x4c6e63
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea edx, [0x53ee74]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 3
call fcn.004025c0
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x4c6f13
mov ecx, dword [esp + 0xa4]
movzx edx, word [ecx]
cmp dx, 0x7069
jne 0x4c6eec
cmp byte [ecx + 2], 0x34
jne 0x4c6ee7
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xa4]
jmp 0x4c6682
cmp dx, 0x7069
jne 0x4c6f07
cmp byte [ecx + 2], 0x36
jne 0x4c6f07
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xa4]
jmp 0x4c6682
mov ecx, dword [esp + 0xa8]
jmp 0x4c6cd0
mov ecx, dword [esp + 0xa4]
cmp word [ecx], 0x6374
jne 0x4c6f2b
cmp byte [ecx + 2], 0x70
je 0x4c6d1d
cmp word [ecx], 0x6475
jne 0x4c6f07
cmp byte [ecx + 2], 0x70
je 0x4c6d1d
jmp 0x4c6f07
mov ecx, dword [esp + 0xa8]
mov edx, eax
jmp 0x4c6f4d
mov eax, edx
jmp 0x4c6f3e
mov dword [esp], 0
lea eax, [0x5488b3]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x14
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
call fcn.00444d90
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00408960
mov eax, dword [esp + 8]
lea ecx, [0x51e540]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0042f780
nop
call fcn.00458300
jmp fcn.004c6640