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

Disassembly:
push 0xffffffffffffffff
push 0x1c51d1
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x2316ec]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x2316ec]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
push eax
push ecx
mov dword [esp + 0x1c], esi
call fcn.000ceab0
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 0x10]
add esp, 8
cmp edi, eax
je 0xca959
mov ecx, eax
sub ecx, eax
sar ecx, 2
lea ebx, [ecx*4]
push ebx
push eax
push edi
call fcn.00158cc0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x14], ebx
xor ebp, ebp
cmp dword [esi + 0x30], ebp
je 0xcb6e7
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], ebp
lea eax, [esp + 0x7c]
push eax
push esi
mov dword [esp + 0x150], ebp
call fcn.000ca470
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
jb 0xca999
mov ecx, dword [eax]
mov dword [esp + 0x2c], ecx
jmp 0xca99d
mov dword [esp + 0x2c], eax
mov edx, dword [esi + 0x30]
mov dword [esp + 0x30], edx
mov ebx, 0x8007000e
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov byte [esp + 0x148], 1
mov ecx, dword [esp + 0x80]
sub ecx, dword [esp + 0x7c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0xcab0a
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x78], eax
xor ecx, ecx
xor ebp, ebp
mov dword [esp + 0x44], ecx
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x148], 2
lea esi, [ecx + 0x64]
cmp ebx, 0x8007000e
jne 0xcaab1
cmp esi, 0x2710
jae 0xcaaad
xor ecx, ecx
mov eax, esi
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00157a7c
mov ebx, eax
add esp, 4
cmp ebp, ebx
je 0xcaa45
push ebp
call fcn.00159081
mov ebp, ebx
add esp, 4
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x50], 0
movzx eax, byte [edi + 8]
and eax, 1
shl eax, 0x15
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x50], eax
mov word [esp + 0x18], cx
cmp byte [edi + 8], cl
setne dl
and dx, 0x1f
mov word [esp + 0x18], dx
mov ecx, dword [edi]
mov eax, dword [edi + 4]
lea edx, [esp + 0x44]
push edx
push ebp
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x5c]
push edx
sub eax, ecx
lea edx, [esi - 1]
push edx
push eax
mov eax, dword [esp + 0x44]
lea ecx, [eax + ecx*2]
push ecx
call dword [sym.imp.USP10.dll_ScriptItemize]
mov ebx, eax
add esi, esi
cmp ebx, 0x8007000e
je 0xcaa09
mov ecx, dword [esp + 0x44]
xor eax, eax
test ecx, ecx
jle 0xcaacf
jmp 0xcaac0
mov edx, dword [edi]
add dword [ebp + eax*8], edx
mov ecx, dword [esp + 0x44]
inc eax
cmp eax, ecx
jl 0xcaac0
mov edx, dword [esp + 0x58]
lea eax, [ebp + ecx*8]
mov ecx, dword [esp + 0x1c]
push ecx
push eax
push ebp
push edx
lea esi, [esp + 0x64]
call fcn.000cec60
push ebp
mov byte [esp + 0x14c], 1
call fcn.00159081
add esp, 4
add edi, 0xc
dec dword [esp + 0x78]
jne 0xca9e6
mov ebp, dword [esp + 0x5c]
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x54]
xor esi, esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
cmp ecx, edi
jae 0xcab5c
mov edx, ecx
cmp ebx, edx
ja 0xcab5c
mov esi, ecx
sub esi, ebx
sar esi, 3
cmp edi, ebp
jne 0xcab4a
lea eax, [esp + 0x54]
call fcn.000ce470
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
test edi, edi
je 0xcab7e
mov eax, dword [ebx + esi*8]
mov dword [edi], eax
mov ecx, dword [ebx + esi*8 + 4]
mov dword [edi + 4], ecx
jmp 0xcab7e
cmp edi, ebp
jne 0xcab71
lea eax, [esp + 0x54]
call fcn.000ce470
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
test edi, edi
je 0xcab7e
mov edx, dword [esp + 0x1c]
mov dword [edi], edx
mov dword [edi + 4], esi
add edi, 8
mov dword [esp + 0x58], edi
cmp ebx, edi
jne 0xcab9f
mov byte [esp + 0x148], 0
test ebx, ebx
je 0xcb6cb
push ebx
jmp 0xcb6c3
mov eax, dword [esp + 0x30]
push eax
call fcn.00157a7c
mov ebp, dword [esp + 0x18]
mov esi, eax
mov eax, dword [ebp + 0x100]
add esp, 4
cmp eax, esi
je 0xcabcb
push eax
call fcn.00159081
add esp, 4
mov dword [ebp + 0x100], esi
sub edi, ebx
sar edi, 3
lea ebp, [edi - 1]
xor esi, esi
mov dword [esp + 0x30], edi
test ebp, ebp
je 0xcac37
mov edi, dword [sym.imp.USP10.dll_ScriptBreak]
mov ebx, dword [esp + 0x2c]
jmp 0xcabf0
mov edx, dword [esp + 0x54]
mov eax, dword [edx + esi*8]
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x100]
add ecx, eax
push ecx
lea ecx, [edx + esi*8 + 4]
mov edx, dword [edx + esi*8 + 8]
push ecx
sub edx, eax
push edx
lea eax, [ebx + eax*2]
push eax
call edi
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x100]
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + esi*8]
or byte [edx + ecx], 8
lea eax, [edx + ecx]
inc esi
cmp esi, ebp
jb 0xcabf0
mov edi, dword [esp + 0x30]
xor ebp, ebp
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ebx
xor eax, eax
mov byte [esp + 0x148], 3
mov dword [esp + 0x2c], eax
test edi, edi
je 0xcaddd
mov dword [esp + 0x20], 2
jmp 0xcac74
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x54]
mov ebx, dword [edx + eax*8]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
cmp eax, esi
jae 0xcad3d
mov ecx, eax
cmp ebp, ecx
ja 0xcad3d
mov edi, dword [esp + 0x3c]
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
cmp esi, edi
jne 0xcad19
mov ecx, esi
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x15555554
ja 0xcaeba
mov edx, edi
sub edx, ebp
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0xcad19
mov edx, eax
shr edx, 1
mov esi, 0x15555555
sub esi, edx
cmp esi, eax
jae 0xcacff
xor eax, eax
jmp 0xcad01
add eax, edx
cmp eax, ecx
jae 0xcad07
mov eax, ecx
push eax
lea esi, [esp + 0x38]
call fcn.00128a40
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
lea edx, [ebx + ebx*2]
lea eax, [ebp + edx*4]
test esi, esi
je 0xcadbf
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
jmp 0xcadbf
mov edi, dword [esp + 0x3c]
cmp esi, edi
jne 0xcadab
mov ecx, esi
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x15555554
ja 0xcaeba
mov edx, edi
sub edx, ebp
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0xcadab
mov edx, eax
shr edx, 1
mov esi, 0x15555555
sub esi, edx
cmp esi, eax
jae 0xcad91
xor eax, eax
jmp 0xcad93
add eax, edx
cmp eax, ecx
jae 0xcad99
mov eax, ecx
push eax
lea esi, [esp + 0x38]
call fcn.00128a40
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
test esi, esi
je 0xcadbf
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esi], ebx
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov eax, dword [esp + 0x2c]
inc eax
add esi, 0xc
mov dword [esp + 0x38], esi
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x30]
jb 0xcac70
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 0x40]
sub ecx, dword [edi + 0x3c]
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], 0
je 0xcb125
mov dword [esp + 0x44], 0
mov eax, dword [edi + 0x3c]
mov edx, dword [esp + 0x44]
mov ecx, dword [eax + edx + 0xb4]
sub ecx, dword [eax + edx + 0xb0]
je 0xcb0f6
mov edi, dword [eax + edx + 0xb0]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], edx
cmp eax, esi
jae 0xcaf03
mov ecx, eax
cmp ebp, ecx
ja 0xcaf03
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp esi, ebx
jne 0xcaee2
mov ecx, esi
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x15555554
ja 0xcaeba
mov edx, ebx
sub edx, ebp
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0xcaee2
mov edx, eax
shr edx, 1
mov esi, 0x15555555
sub esi, edx
cmp esi, eax
jae 0xcaec4
xor eax, eax
jmp 0xcaec6
push 0x1e88f8
call fcn.001579c1
add eax, edx
cmp eax, ecx
jae 0xcaecc
mov eax, ecx
push eax
lea esi, [esp + 0x38]
call fcn.00128a40
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
lea edx, [edi + edi*2]
lea eax, [ebp + edx*4]
test esi, esi
je 0xcaf81
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
jmp 0xcaf81
cmp esi, ebx
jne 0xcaf6d
mov ecx, esi
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x15555554
ja 0xcaeba
mov edx, ebx
sub edx, ebp
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0xcaf6d
mov edx, eax
shr edx, 1
mov esi, 0x15555555
sub esi, edx
cmp esi, eax
jae 0xcaf4f
xor eax, eax
jmp 0xcaf51
add eax, edx
cmp eax, ecx
jae 0xcaf57
mov eax, ecx
push eax
lea esi, [esp + 0x38]
call fcn.00128a40
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
test esi, esi
je 0xcaf81
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esi], edi
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x3c]
add eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x18]
mov edi, dword [eax + 0xb4]
add esi, 0xc
lea edx, [esp + 0x64]
mov dword [esp + 0x38], esi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], 1
mov dword [esp + 0x6c], ecx
cmp edx, esi
jae 0xcb069
mov eax, edx
cmp ebp, eax
ja 0xcb069
mov ecx, edx
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp esi, ebx
jne 0xcb045
mov ecx, esi
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x15555554
ja 0xcaeba
mov edx, ebx
sub edx, ebp
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0xcb045
mov edx, eax
shr edx, 1
mov esi, 0x15555555
sub esi, edx
cmp esi, eax
jae 0xcb027
xor eax, eax
jmp 0xcb029
add eax, edx
cmp eax, ecx
jae 0xcb02f
mov eax, ecx
push eax
lea esi, [esp + 0x38]
call fcn.00128a40
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
lea ecx, [edi + edi*2]
lea eax, [ebp + ecx*4]
test esi, esi
je 0xcb0eb
mov edx, dword [eax]
mov dword [esi], edx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov edx, dword [eax + 8]
mov dword [esi + 8], edx
jmp 0xcb0eb
cmp esi, ebx
jne 0xcb0d7
mov ecx, esi
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x15555554
ja 0xcaeba
mov edx, ebx
sub edx, ebp
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0xcb0d7
mov edx, eax
shr edx, 1
mov esi, 0x15555555
sub esi, edx
cmp esi, eax
jae 0xcb0b9
xor eax, eax
jmp 0xcb0bb
add eax, edx
cmp eax, ecx
jae 0xcb0c1
mov eax, ecx
push eax
lea esi, [esp + 0x38]
call fcn.00128a40
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
test esi, esi
je 0xcb0eb
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esi], edi
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov edi, dword [esp + 0x14]
add esi, 0xc
mov dword [esp + 0x38], esi
mov ecx, dword [edi + 0x40]
sub ecx, dword [edi + 0x3c]
inc dword [esp + 0x18]
add dword [esp + 0x44], 0xb8
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x18], eax
jb 0xcae10
cmp ebp, esi
je 0xcb193
mov ecx, esi
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx + 1]
cdq
sub eax, edx
xor edi, edi
sar eax, 1
lea edx, [esp + 0x64]
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
push 0xca440
mov eax, edx
push eax
push ecx
push esi
push ebp
mov byte [esp + 0x15c], 4
call fcn.000cee00
mov byte [esp + 0x15c], 3
mov eax, dword [esp + 0x78]
add esp, 0x14
cmp eax, edi
je 0xcb193
push eax
call fcn.00158a36
add esp, 4
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
lea ecx, [esp + 0x8c]
mov byte [esp + 0x148], 5
call fcn.00095f20
xor eax, eax
mov dword [esp + 0x30], eax
mov byte [esp + 0x148], 6
mov dword [esp + 0x44], eax
sub esi, ebp
mov eax, 0x2aaaaaab
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x78], eax
je 0xcb60b
mov ecx, dword [esp + 0x54]
add ecx, 0xfffffffc
mov dword [esp + 0x18], ebp
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x18]
cmp dword [eax], edx
jle 0xcb558
push 0x108
call fcn.00158a50
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
xor edi, edi
mov byte [esp + 0x148], 7
cmp esi, edi
je 0xcb27d
mov ecx, esi
call fcn.00095f20
mov dword [esi + 0xb8], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0xc4], edi
mov dword [esi + 0xc8], edi
mov dword [esi + 0xd4], edi
mov dword [esi + 0xd8], edi
mov dword [esi + 0xdc], edi
mov dword [esi + 0xe0], edi
mov dword [esi + 0xe4], edi
mov dword [esi + 0xe8], edi
mov dword [esi + 0xf8], edi
mov dword [esi + 0xfc], edi
mov byte [esi + 0x100], 0
jmp 0xcb27f
xor esi, esi
mov byte [esp + 0x148], 6
lea edi, [esp + 0x8c]
mov dword [esp + 0x2c], esi
call fcn.0007aa00
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x18]
lea ecx, [ebx + 0x50]
mov dword [esi + 0xa8], ecx
mov dword [esi + 0xb0], edx
mov ecx, dword [eax]
mov edx, dword [esp + 0x50]
mov dword [esi + 0xb4], ecx
mov eax, dword [edx]
mov dword [esi + 0xd0], eax
mov ecx, dword [ebx + 0x14]
sub ecx, dword [ebx + 0x10]
test ecx, 0xfffffffc
je 0xcb305
mov eax, dword [ebx + 0x14]
mov edi, dword [eax - 4]
push esi
call fcn.000c9970
add esp, 4
test al, al
jne 0xcb305
mov eax, dword [ebx + 0x14]
mov eax, dword [eax - 4]
mov edx, 0x2000
or word [eax + 0xd0], dx
mov eax, 0x1000
or word [esi + 0xd0], ax
mov ecx, dword [esi + 0xa4]
shr ecx, 8
test cl, 1
je 0xcb318
mov eax, dword [esi + 0x3c]
jmp 0xcb327
mov eax, dword [esi + 0xa8]
test eax, eax
je 0xcb372
call fcn.000982b0
cmp eax, 1
je 0xcb372
fldz
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x13c]
fst qword [esp + 0x44]
lea edx, [esp + 0x44]
fstp qword [esp + 0x1c]
push edx
lea ebx, [esp + 0x20]
call fcn.000c9cd0
fld qword [esp + 0x20]
or dword [esi + 0xa4], 2
fstp qword [esi + 0x20]
fld qword [esp + 0x48]
add esp, 4
call fcn.001b8790
mov ebx, dword [esp + 0x14]
mov dword [esi + 0xc4], eax
mov eax, dword [ebx + 0x14]
lea ecx, [esp + 0x2c]
cmp ecx, eax
jae 0xcb478
mov edx, dword [ebx + 0x10]
cmp edx, ecx
ja 0xcb478
mov esi, ecx
mov ecx, dword [ebx + 0x18]
sub esi, edx
sar esi, 2
mov dword [esp + 0x1c], esi
cmp eax, ecx
jne 0xcb45a
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0xcaeba
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0xcb45a
mov edi, ecx
mov edx, edi
shr edx, 1
mov ebx, 0x3fffffff
sub ebx, edx
cmp ebx, edi
jae 0xcb3d5
xor edi, edi
jmp 0xcb3d7
add edi, edx
cmp edi, eax
jae 0xcb3dd
mov edi, eax
cmp edi, 0x3fffffff
ja 0xcaeba
cmp ecx, edi
jae 0xcb45a
xor ebx, ebx
test edi, edi
je 0xcb40d
lea edx, [edi*4]
push edx
call fcn.00158a50
mov ebx, eax
add esp, 4
test ebx, ebx
je 0xcb70f
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
sub eax, ecx
sar eax, 2
add eax, eax
add eax, eax
push eax
push ecx
push ebx
call fcn.00158cc0
mov eax, dword [esi + 0x10]
mov esi, dword [esi + 0x14]
sub esi, eax
add esp, 0xc
sar esi, 2
test eax, eax
je 0xcb443
push eax
call fcn.00158a36
add esp, 4
mov eax, dword [esp + 0x14]
lea edx, [ebx + esi*4]
mov esi, dword [esp + 0x1c]
lea ecx, [ebx + edi*4]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], edx
mov dword [eax + 0x10], ebx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x10]
lea esi, [eax + esi*4]
mov eax, dword [ecx + 0x14]
test eax, eax
je 0xcb46f
mov edx, dword [esi]
mov dword [eax], edx
add dword [ecx + 0x14], 4
jmp 0xcb558
mov ecx, dword [ebx + 0x18]
cmp eax, ecx
jne 0xcb547
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 0x10]
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0xcaeba
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0xcb547
mov ebx, ecx
mov edx, ebx
shr edx, 1
mov edi, 0x3fffffff
sub edi, edx
cmp edi, ebx
jae 0xcb4bd
xor ebx, ebx
jmp 0xcb4bf
add ebx, edx
cmp ebx, eax
jae 0xcb4c5
mov ebx, eax
cmp ebx, 0x3fffffff
ja 0xcaeba
cmp ecx, ebx
jae 0xcb547
xor ebp, ebp
test ebx, ebx
je 0xcb4f5
lea eax, [ebx*4]
push eax
call fcn.00158a50
mov ebp, eax
add esp, 4
test ebp, ebp
je 0xcb730
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
push edx
push ecx
push ebp
call fcn.00158cc0
mov eax, dword [edi + 0x10]
mov edi, dword [edi + 0x14]
sub edi, eax
add esp, 0xc
sar edi, 2
test eax, eax
je 0xcb52e
push eax
call fcn.00158a36
add esp, 4
mov eax, dword [esp + 0x14]
lea ecx, [ebp + ebx*4]
lea edx, [ebp + edi*4]
mov dword [eax + 0x10], ebp
mov ebp, dword [esp + 0x34]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0xcb554
mov dword [ecx], esi
add dword [eax + 0x14], 4
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, 0
mov dword [esp + 0x44], ecx
je 0xcb5bb
dec eax
je 0xcb577
dec eax
jne 0xcb5eb
add dword [esp + 0x50], 8
jmp 0xcb5eb
mov ebx, dword [esp + 0x68]
lea edi, [ebx - 0xb0]
lea esi, [esp + 0x8c]
call fcn.0007aa00
cmp dword [esp + 0x64], ebx
je 0xcb5eb
cmp dword [edi + 0x14], 0x10
jb 0xcb5a4
mov eax, dword [edi]
push eax
call fcn.00158a36
add esp, 4
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov dword [esp + 0x68], edi
jmp 0xcb5eb
lea ecx, [esp + 0x8c]
lea ebx, [esp + 0x64]
call fcn.000ce280
mov edx, dword [esp + 0x18]
mov edi, dword [edx + 8]
mov eax, dword [esp + 0x14]
imul edi, edi, 0xb8
add edi, dword [eax + 0x3c]
lea esi, [esp + 0x8c]
call fcn.00096a20
mov eax, dword [esp + 0x30]
add dword [esp + 0x18], 0xc
inc eax
mov dword [esp + 0x30], eax
cmp eax, dword [esp + 0x78]
jb 0xcb1f4
mov ebx, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x148], 5
cmp dword [esp + 0xa0], 0x10
mov byte [ecx + 0x138], 0
jb 0xcb638
mov edx, dword [esp + 0x8c]
push edx
call fcn.00158a36
add esp, 4
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], 0
mov byte [esp + 0x8c], 0
mov byte [esp + 0x148], 3
test ebx, ebx
je 0xcb69d
mov esi, ebx
cmp ebx, edi
je 0xcb694
cmp dword [esi + 0x14], 0x10
jb 0xcb679
mov eax, dword [esi]
push eax
call fcn.00158a36
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0xb0
cmp esi, edi
jne 0xcb668
push ebx
call fcn.00158a36
add esp, 4
mov byte [esp + 0x148], 1
test ebp, ebp
je 0xcb6b2
push ebp
call fcn.00158a36
add esp, 4
mov byte [esp + 0x148], 0
mov eax, dword [esp + 0x54]
test eax, eax
je 0xcb6cb
push eax
call fcn.00158a36
add esp, 4
mov dword [esp + 0x148], 0xffffffff
mov eax, dword [esp + 0x7c]
test eax, eax
je 0xcb6e7
push eax
call fcn.00158a36
add esp, 4
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.00158a41
add esp, 0x138
ret
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], vtable.stdext::bad_alloc.0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 8
call fcn.00014df0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], vtable.stdext::bad_alloc.0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 9
call fcn.00014df0
int3