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

Disassembly:
mov ecx, dword [0x6b21fc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x38]
cmp eax, dword [ecx + 8]
jbe 0x4c6bb0
sub esp, 0xb8
lea eax, [0x5284e0]
mov dword [esp], eax
call fcn.0040c3d0
mov eax, dword [esp + 4]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0xbc]
mov dword [eax], ecx
lea edx, [0x533be0]
mov dword [esp], edx
call fcn.0040c3d0
mov eax, dword [esp + 4]
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov ecx, dword [0x6b2320]
test ecx, ecx
jne 0x4c688d
mov ecx, dword [esp + 0x5c]
jmp 0x4c6898
call fcn.00468860
mov ecx, dword [esp + 0x5c]
mov dword [edi], ecx
mov dword [eax], ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 2
mov ecx, dword [0x6b2320]
lea edx, [eax + 0x18]
test ecx, ecx
je 0x4c68bc
call fcn.00468860
mov dword [edi], edx
mov dword [esp + 0x4c], eax
mov dword [eax + 0xc], edx
lea edi, [esp + 0x8c]
xor eax, eax
call fcn.00468aa5
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
call fcn.00453df0
movzx ecx, byte [esp + 0x30]
mov byte [esp + 0x37], cl
lea edi, [esp + 0x8c]
lea esi, [esp + 4]
call fcn.00468f52
lea edi, [esp + 0x60]
lea esi, [esp + 0x8c]
call fcn.00468f52
cmp dword [esp + 0x6c], 0xe
jne 0x4c6938
mov eax, dword [esp + 0x68]
mov dword [esp], eax
lea eax, [0x5482d6]
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
call fcn.00403120
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4c69e2
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4c6962
mov ecx, dword [esp + 0x6c]
test ecx, ecx
jne 0x4c694c
test eax, eax
jmp 0x4c6962
mov ecx, dword [esp + 0x74]
test ecx, ecx
jne 0x4c6958
test eax, eax
jmp 0x4c6962
mov ecx, dword [esp + 0x78]
test ecx, ecx
jne 0x4c6969
test eax, eax
mov eax, 3
jmp 0x4c6970
test eax, eax
mov eax, 1
mov byte [esp + 0x36], al
jne 0x4c6982
mov ecx, dword [esp + 0xbc]
dec ecx
mov dword [esp + 0x60], ecx
lea eax, [0x5293c0]
mov dword [esp], eax
call fcn.0040c3d0
mov eax, dword [0x6b2320]
mov edi, dword [esp + 4]
mov dword [esp + 0x58], edi
test eax, eax
je 0x4c69c0
lea eax, [0x53b3a0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea ecx, [esp + 0x60]
mov dword [esp + 8], ecx
call fcn.004111d0
mov edi, dword [esp + 0x58]
lea esi, [esp + 0x60]
call fcn.00468f52
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x58]
movzx edx, byte [esp + 0x37]
mov eax, 1
mov ebx, 1
jmp 0x4c6a29
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov byte [esp + 0xcc], 0
add esp, 0xb8
ret
lea esi, [esp + 0x60]
mov ebp, edi
mov edi, eax
call fcn.00468f52
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x3c]
mov edi, ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x48], edi
cmp dword [esp + 0x6c], 0xe
je 0x4c6a43
mov ebp, 1
jmp 0x4c6a84
mov byte [esp + 0x37], dl
mov eax, dword [esp + 0x68]
mov dword [esp], eax
lea eax, [0x5482d6]
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
call fcn.00403120
movzx eax, byte [esp + 0xc]
xor eax, 1
mov ecx, dword [esp + 0x4c]
movzx edx, byte [esp + 0x37]
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x48]
mov ebp, eax
mov eax, dword [esp + 0x3c]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x4c6b88
test dl, dl
je 0x4c6b88
lea edi, [esp + 0x8c]
xor eax, eax
call fcn.00468aa5
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
call fcn.00453df0
mov ecx, dword [esp + 0x38]
inc ecx
mov dword [esp + 0x44], ecx
movzx edx, byte [esp + 0x30]
mov byte [esp + 0x37], dl
lea edi, [esp + 0x8c]
lea esi, [esp + 4]
call fcn.00468f52
lea edi, [esp + 0x60]
lea esi, [esp + 0x8c]
call fcn.00468f52
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x44]
cmp ecx, ebx
jb 0x4c6af4
mov edi, dword [esp + 0x48]
jmp 0x4c6b2f
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x53b3a0]
mov dword [esp + 0x10], eax
call fcn.0044f350
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
movzx edx, byte [esp + 0x37]
mov ebx, ecx
mov ecx, eax
mov dword [esp + 0x3c], ecx
mov ebp, dword [0x6b2320]
imul eax, ebx, 0x2c
lea eax, [eax + edi - 0x2c]
test ebp, ebp
je 0x4c6a12
mov dword [esp + 0x54], edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x50], eax
lea ecx, [0x53b3a0]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea edx, [esp + 0x60]
mov dword [esp + 8], edx
call fcn.004111d0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x3c]
movzx edx, byte [esp + 0x37]
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x54]
jmp 0x4c6a12
mov dword [esp + 0xc0], edi
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], eax
movzx eax, byte [esp + 0x36]
mov byte [esp + 0xcc], al
add esp, 0xb8
ret
call fcn.00467460
jmp fcn.004c6820