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

Disassembly:
mov ecx, dword [0x6c4e70]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x88]
cmp eax, dword [ecx + 8]
jbe 0x4cb430
sub esp, 0x108
mov eax, 0
mov dword [esp + 0x104], eax
mov byte [esp + 0x2b], 0
mov eax, dword [esp + 0x11c]
mov ecx, eax
and eax, 0x1f
mov dword [esp + 0x44], eax
nop
cmp eax, 0x14
ja 0x4cab4a
lea edx, [eax - 0x12]
cmp edx, 1
jbe 0x4cab6d
cmp eax, 0x14
je 0x4cab54
jmp 0x4cb3e9
cmp eax, 0x16
jbe 0x4cab6d
cmp eax, 0x17
jne 0x4cab64
mov edx, dword [esp + 0x118]
mov ebx, dword [edx]
test ebx, ebx
setne bl
jmp 0x4cab96
cmp eax, 0x1a
jne 0x4cb3e9
test ecx, 0x200
jne 0x4cabc4
test ecx, 0x80
je 0x4cab88
mov edx, dword [esp + 0x118]
mov ebx, dword [edx]
jmp 0x4cab91
mov edx, dword [esp + 0x118]
mov ebx, edx
test ebx, ebx
setne bl
test bl, bl
jne 0x4cabcb
mov eax, dword [esp + 0x110]
test byte [eax], al
mov dword [esp], eax
lea eax, [0x586705]
mov dword [esp + 4], eax
mov dword [esp + 8], 4
call fcn.004b9a60
add esp, 0x108
ret
mov edx, dword [esp + 0x118]
mov ebx, dword [esp + 0x110]
mov ebp, dword [ebx + 0x14]
inc ebp
mov dword [ebx + 0x14], ebp
cmp ebp, 0x3e8
ja 0x4cabe8
xor ebp, ebp
jmp 0x4cacff
mov eax, dword [esp + 0x114]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.0048a9e0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x48], eax
lea ecx, [0x560be0]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], eax
mov edx, dword [esp + 0x110]
mov ebx, dword [edx + 0x18]
lea ebp, [0x5626e0]
mov dword [esp], ebp
mov dword [esp + 4], ebx
lea ebx, [esp + 0x70]
mov dword [esp + 8], ebx
call fcn.0040cd40
movzx eax, byte [esp + 0x10]
test al, al
je 0x4cac56
mov eax, dword [esp + 0x11c]
test eax, eax
jne 0x4cb279
jmp 0x4cb3b7
lea eax, [0x560be0]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x74], ecx
mov edx, dword [esp + 0x110]
mov ebx, dword [edx + 0x18]
lea ebp, [0x5626e0]
mov dword [esp], ebp
mov dword [esp + 4], ebx
lea ebx, [esp + 0x70]
mov dword [esp + 8], ebx
call fcn.0040d0c0
mov eax, dword [esp + 0xc]
test byte [eax], al
mov eax, dword [esp + 0x110]
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea edx, [0x4cb4c0]
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ecx
lea ecx, [0x560be0]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x84], ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0x104], ecx
mov byte [esp + 0x2b], 1
mov ebx, eax
mov ebp, 1
xchg ebp, eax
mov byte [esp + 0x2a], al
xchg ebp, eax
mov dword [esp], ebx
mov byte [esp + 4], 0x7b
call fcn.004b9db0
mov eax, dword [esp + 0x44]
cmp eax, 0x17
jne 0x4cad27
mov ecx, dword [esp + 0x118]
mov edx, dword [ecx + 4]
jmp 0x4cad50
mov eax, dword [esp + 0x114]
mov dword [esp], eax
mov ecx, dword [esp + 0x118]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x11c]
mov dword [esp + 8], edx
call fcn.004889c0
mov edx, dword [esp + 0xc]
mov dword [esp + 0x2c], edx
lea eax, [0x56ed80]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.00449500
mov eax, dword [esp + 0xc]
mov dword [esp + 0x5c], eax
nop
mov ecx, dword [esp + 0x44]
cmp ecx, 0x15
je 0x4cad8f
mov eax, dword [esp + 0x11c]
mov dword [esp], eax
call fcn.00489320
mov eax, dword [esp + 0x5c]
lea edi, [esp + 0xc8]
xor eax, eax
call fcn.004610e1
mov ecx, dword [esp + 0x114]
mov dword [esp + 0xc8], ecx
mov edx, dword [esp + 0x118]
mov dword [esp + 0xcc], edx
mov ebx, dword [esp + 0x11c]
mov dword [esp + 0xd0], ebx
xor eax, eax
jmp 0x4cadd2
mov ecx, dword [esp + 0x34]
lea eax, [ecx + 1]
mov dword [esp + 0x34], eax
lea ecx, [esp + 0xc8]
mov dword [esp], ecx
call fcn.00489230
movzx eax, byte [esp + 4]
test al, al
je 0x4caed4
lea eax, [esp + 0xc8]
mov dword [esp], eax
call fcn.00489090
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jae 0x4cb274
shl eax, 5
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 0x5c]
lea esi, [ebp + eax]
mov dword [esp + 0x58], esi
mov edi, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [ebp + eax + 8], ebx
mov ebx, dword [0x6c4f80]
test ebx, ebx
je 0x4cae56
mov ebx, edi
call fcn.00460f20
mov dword [edi], ebx
mov edx, dword [ebp + eax]
mov dword [edi + 4], edx
mov dword [edi + 8], ecx
mov edx, dword [ebp + eax + 4]
mov dword [edi + 0xc], edx
mov edi, ebx
mov dword [esp + 0x40], eax
mov dword [ebp + eax], edi
mov dword [ebp + eax + 4], ecx
lea ecx, [esp + 0xc8]
mov dword [esp], ecx
call fcn.00489160
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x5c]
mov dword [ebp + ebx + 0x14], eax
mov eax, dword [0x6c4f80]
test eax, eax
je 0x4caeab
call fcn.00460f20
mov dword [edi], ecx
mov eax, dword [ebp + ebx + 0xc]
mov dword [edi + 4], eax
mov dword [edi + 8], edx
mov eax, dword [ebp + ebx + 0x10]
mov dword [edi + 0xc], eax
mov dword [ebp + ebx + 0xc], ecx
mov dword [ebp + ebx + 0x10], edx
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call fcn.004cc900
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
test eax, eax
je 0x4cadcb
jmp 0x4cb0ed
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00409600
mov eax, dword [esp + 0xc]
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
lea ecx, [0x4cb440]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x8c], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], edx
lea ebx, [0x55b0e0]
mov dword [esp], ebx
mov dword [esp + 4], eax
lea eax, [esp + 0x88]
mov dword [esp + 8], eax
call fcn.00466ea0
mov eax, dword [esp + 0x5c]
xor ecx, ecx
jmp 0x4cb065
mov eax, dword [esp + 0xc0]
mov edx, dword [esp + 0xc4]
mov ebx, dword [esp + 0x110]
mov ebp, dword [ebx + 4]
mov esi, dword [ebx + 8]
sub esi, ebp
mov edi, esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and ebp, esi
add ebp, dword [ebx]
inc ecx
mov dword [esp + 0x40], ecx
lea esi, [0x5c0228]
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], 0
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
movzx eax, byte [esp + 0x121]
mov byte [esp + 0x18], al
call fcn.004d3340
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x110]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call fcn.004b9990
mov eax, dword [esp + 0x110]
mov dword [esp], eax
mov byte [esp + 4], 0x3a
call fcn.004b9db0
mov edx, dword [esp + 0x10c]
mov eax, dword [edx]
mov ecx, dword [esp + 0xb4]
mov ebx, dword [esp + 0xb8]
mov ebp, dword [esp + 0xbc]
mov esi, dword [esp + 0x110]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
movzx ecx, byte [esp + 0x120]
mov byte [esp + 0x10], cl
movzx ebx, byte [esp + 0x121]
mov byte [esp + 0x11], bl
call eax
mov eax, dword [esp + 0x5c]
add eax, 0x20
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
cmp ecx, edx
jge 0x4cb0ac
mov dword [esp + 0x30], ecx
mov dword [esp + 0x5c], eax
lea edi, [esp + 0xa8]
mov esi, eax
call fcn.004615b0
mov ecx, dword [esp + 0x30]
test ecx, ecx
jle 0x4caf6e
mov eax, dword [esp + 0x110]
mov dword [esp], eax
mov byte [esp + 4], 0x2c
call fcn.004b9db0
mov ecx, dword [esp + 0x30]
jmp 0x4caf6e
mov eax, dword [esp + 0x110]
mov dword [esp], eax
mov byte [esp + 4], 0x7d
call fcn.004b9db0
mov eax, dword [esp + 0x110]
dec dword [eax + 0x14]
movzx eax, byte [esp + 0x2a]
test al, 1
je 0x4cb0e6
and eax, 0xfffffffe
mov byte [esp + 0x2b], al
mov edx, dword [esp + 0x104]
mov eax, dword [edx]
call eax
add esp, 0x108
ret
mov dword [esp + 0x38], eax
mov dword [esp + 0x4c], ecx
mov edx, dword [esp + 0x11c]
test edx, edx
je 0x4cb249
test edx, 0x200
jne 0x4cb249
lea edx, [0x5c13b8]
mov ebx, dword [esp + 0x114]
mov eax, dword [edx + 0x80]
mov dword [esp], ebx
call eax
mov eax, dword [esp + 4]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x38]
mov edx, dword [edx + 0x10]
mov ebx, dword [esp + 0x4c]
mov dword [esp], ebx
call edx
mov eax, dword [esp + 4]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov edx, dword [esp + 0x54]
mov dword [esp], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 4], edx
call fcn.00409580
mov eax, dword [esp + 8]
lea ecx, [0x560820]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
call fcn.00409580
mov eax, dword [esp + 8]
lea ecx, [0x560820]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], eax
lea eax, [0x58ff41]
mov dword [esp], eax
mov dword [esp + 4], 0x24
lea eax, [esp + 0x98]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004adf70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
lea eax, [0x56b960]
mov dword [esp], eax
lea ecx, [esp + 0x60]
mov dword [esp + 4], ecx
call fcn.004093b0
mov eax, dword [esp + 8]
lea ecx, [0x56b960]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00435490
mov eax, dword [esp + 0x114]
mov dword [esp], eax
mov eax, dword [esp + 0x118]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.0048a890
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
jmp 0x4cb11d
call fcn.00460f60
test eax, 0x200
jne 0x4cb3b7
lea ecx, [0x5c13b8]
mov edx, dword [esp + 0x114]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
test ecx, ecx
je 0x4cb2a8
mov ecx, dword [ecx + 4]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
lea eax, [0x58cb7b]
mov dword [esp], eax
mov dword [esp + 4], 0x1a
lea eax, [esp + 0x68]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004b0a30
mov eax, dword [esp + 0x14]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x40], ecx
lea edx, [0x56a6a0]
mov dword [esp], edx
call fcn.0040bd30
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x11c]
mov dword [eax + 8], ecx
mov ecx, dword [0x6c4f80]
test ecx, ecx
jne 0x4cb39a
mov ecx, dword [esp + 0x114]
mov dword [eax], ecx
mov ecx, dword [esp + 0x118]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 0x10], ecx
mov ecx, dword [0x6c4f80]
test ecx, ecx
jne 0x4cb38d
mov ecx, dword [esp + 0x54]
mov dword [eax + 0xc], ecx
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
lea ecx, [0x5c0578]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
lea eax, [0x56b960]
mov dword [esp], eax
lea ecx, [esp + 0x60]
mov dword [esp + 4], ecx
call fcn.004093b0
mov eax, dword [esp + 8]
lea ecx, [0x56b960]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00435490
call fcn.00460ef0
mov ecx, dword [esp + 0x54]
mov dword [edi], ecx
jmp 0x4cb33c
call fcn.00460f00
mov ecx, dword [esp + 0x114]
mov dword [edi], ecx
mov edx, dword [esp + 0x118]
mov dword [edi + 4], edx
jmp 0x4cb318
mov ecx, dword [esp + 0x114]
mov dword [esp], ecx
mov edx, dword [esp + 0x118]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.0048a890
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x11c]
jmp 0x4cb291
lea eax, [0x569800]
mov dword [esp], eax
call fcn.0040bd30
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x13
lea ecx, [0x589c60]
mov dword [eax], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 8], ecx
lea ecx, [0x563fc0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00435490
nop
call fcn.00434a10
add esp, 0x108
ret
call fcn.0045faf0
jmp fcn.004caaf0