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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x18]
cmp eax, dword [ecx + 8]
jbe 0x4caf9b
sub esp, 0x98
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
lea eax, [0x4cafb0]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x94], eax
test byte [eax], al
mov dword [esp], eax
lea ecx, [esp + 0x90]
mov dword [esp + 4], ecx
call fcn.004adc90
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x64], esi
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
test edx, edx
je 0x4cabcd
test ebx, ebx
je 0x4cabab
lea ecx, [0x690e34]
cmp eax, ecx
jne 0x4caba7
mov dword [esp + 0x84], ebp
mov dword [esp + 0x7c], esi
mov dword [esp + 0x8c], eax
mov dword [esp + 0x50], ebx
lea eax, [0x61e0c0]
mov dword [esp], eax
call fcn.0040b460
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x50]
mov dword [edi + 4], eax
mov eax, dword [0x7e0970]
test eax, eax
jne 0x4cab61
mov ecx, dword [esp + 0x7c]
mov dword [edi], ecx
jmp 0x4cab6a
mov eax, dword [esp + 0x7c]
call fcn.0045e4b0
mov ecx, dword [esp + 0x8c]
mov dword [edi + 8], ecx
mov ecx, dword [0x7e0970]
test ecx, ecx
jne 0x4cab8a
mov eax, dword [esp + 0x84]
mov dword [edi + 0xc], eax
jmp 0x4cab9f
lea ecx, [edi + 0xc]
mov eax, dword [esp + 0x84]
mov edx, edi
mov edi, ecx
call fcn.0045e4b0
mov edi, edx
lea edx, [0x690b78]
jmp 0x4cabad
mov edi, ebp
jmp 0x4cabad
mov edi, ebp
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], edi
add esp, 0x98
ret
mov dword [esp + 0x34], ecx
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x9c]
mov edx, dword [eax + 0x134]
mov dword [esp + 0x4c], edx
mov ebx, dword [eax + 0x138]
mov dword [esp + 0x30], ebx
mov ebp, dword [eax + 0x140]
mov dword [esp + 0x68], ebp
mov esi, dword [eax + 0x144]
mov dword [esp + 0x44], esi
cmp ebx, 2
je 0x4cac15
cmp ebx, 3
setne al
mov byte [esp + 0x2f], al
jmp 0x4cac1f
mov dword [esp + 0x54], eax
xor eax, eax
mov byte [esp + 0x2f], al
lea eax, [0x62ad80]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x34]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x30]
cmp ecx, 1
sete dl
mov byte [eax + 0x12d], dl
movzx edx, byte [esp + 0x2f]
mov byte [eax + 0x12e], dl
mov edx, dword [esp + 0x4c]
mov dword [eax + 0x134], edx
mov dword [eax + 0x138], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x144], ecx
mov ecx, dword [0x7e0970]
test ecx, ecx
jne 0x4cac83
mov ecx, dword [esp + 0x68]
mov dword [eax + 0x140], ecx
jmp 0x4cac96
lea edi, [eax + 0x140]
mov ecx, eax
mov eax, dword [esp + 0x68]
call fcn.0045e4b0
mov eax, ecx
mov dword [esp + 0x78], eax
mov dword [esp], eax
call fcn.004c9eb0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
test eax, eax
jne 0x4caf48
mov dword [esp + 0x70], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x3c], 0
mov ecx, dword [esp + 0x40]
test ecx, ecx
jbe 0x4caf93
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov dword [esp + 4], 0
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x1c], eax
call fcn.00490970
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.0048d490
mov eax, dword [esp + 4]
mov dword [esp + 0x8c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x6c], ecx
mov edx, dword [esp + 0x60]
mov dword [esp], edx
call fcn.0048d490
mov eax, dword [esp + 4]
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x5c], ecx
mov edx, dword [esp + 0x78]
mov ebx, dword [edx + 0x134]
cmp ebx, 1
jne 0x4cad9c
mov ebx, dword [edx + 0x138]
cmp ebx, 1
jne 0x4cad82
lea ebx, [0x649ffc]
jmp 0x4cadd9
cmp ebx, 2
jne 0x4cad8f
lea ebx, [0x649ff4]
jmp 0x4cadd9
cmp ebx, 5
jne 0x4cadd3
lea ebx, [0x649ff8]
jmp 0x4cadd9
cmp ebx, 2
je 0x4cada6
cmp ebx, 0x17
jne 0x4cadd3
mov ebx, dword [edx + 0x138]
cmp ebx, 1
jne 0x4cadb9
lea ebx, [0x649fec]
jmp 0x4cadd9
cmp ebx, 2
jne 0x4cadc6
lea ebx, [0x649ff0]
jmp 0x4cadd9
cmp ebx, 3
jne 0x4cadd3
lea ebx, [0x649fe8]
jmp 0x4cadd9
lea ebx, [0x649fa0]
mov eax, dword [ebx]
mov ecx, dword [esp + 0x8c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 4], ecx
mov edx, ebx
call eax
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x134]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x74], ebx
mov ebp, dword [esp + 8]
mov dword [esp + 0x8c], ebp
cmp ecx, 1
jne 0x4cae40
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x4cae26
lea ecx, [0x649ffc]
jmp 0x4cae7d
cmp ecx, 2
jne 0x4cae33
lea ecx, [0x649ff4]
jmp 0x4cae7d
cmp ecx, 5
jne 0x4cae77
lea ecx, [0x649ff8]
jmp 0x4cae7d
cmp ecx, 2
je 0x4cae4a
cmp ecx, 0x17
jne 0x4cae77
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x4cae5d
lea ecx, [0x649fec]
jmp 0x4cae7d
cmp ecx, 2
jne 0x4cae6a
lea ecx, [0x649ff0]
jmp 0x4cae7d
cmp ecx, 3
jne 0x4cae77
lea ecx, [0x649fe8]
jmp 0x4cae7d
lea ecx, [0x649fa4]
mov eax, dword [ecx]
mov ebx, dword [esp + 0x88]
mov dword [esp], ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 4], ebx
mov edx, ecx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x78]
mov dword [ebp + 0x148], ebx
mov ebx, dword [0x7e0970]
test ebx, ebx
jne 0x4caec4
mov edx, dword [esp + 0x74]
mov dword [ebp + 0x14c], edx
jmp 0x4caed7
lea edi, [ebp + 0x14c]
mov edx, eax
mov eax, dword [esp + 0x74]
call fcn.0045e4b0
mov eax, edx
mov dword [ebp + 0x150], ecx
mov ecx, dword [0x7e0970]
test ecx, ecx
jne 0x4caeef
mov dword [ebp + 0x154], eax
jmp 0x4caefa
lea edi, [ebp + 0x154]
call fcn.0045e4b0
lea eax, [0x633d60]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea eax, [0x60fc80]
mov dword [esp + 8], eax
lea eax, [0x649f9c]
mov dword [esp + 0xc], eax
call fcn.004149d0
mov eax, dword [esp + 0x78]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
add esp, 0x98
ret
mov dword [esp + 0x80], edx
mov dword [esp + 0x8c], ecx
mov eax, dword [esp + 0x9c]
mov dword [esp], eax
call fcn.004c9670
mov dword [esp + 0xa0], 0
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xa8], eax
add esp, 0x98
ret
xor eax, eax
call fcn.0045e530
nop
call fcn.0045d0a0
jmp fcn.004caa70