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

Disassembly:
sub esp, 0x554
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0x550], eax
mov eax, ecx
mov dword [esp + 0x10], 0xffffffff
mov ecx, dword [esp + 0x558]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x564]
mov dword [esp + 0x38], ecx
push ebx
mov ebx, edx
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x564]
mov ecx, ebx
sub ecx, eax
mov dword [esp + 0x20], ebx
sar ecx, 2
push ebp
mov dword [esp + 0x10], ecx
xor ebp, ebp
push esi
push edi
mov edi, dword [esp + 0x56c]
mov ecx, edx
sub ecx, edi
mov dword [esp + 0x10], edx
sar ecx, 2
mov dword [esp + 0x14], ebp
call fcn.1014aa30
mov esi, eax
mov eax, dword [esp + 0x18]
test esi, esi
jns 0x1014b902
cmp esi, 0xffffffff
jne 0x1014b5c3
shl eax, 2
mov ecx, ebx
sub ecx, eax
mov eax, edx
sub eax, dword [esp + 0x54]
sar eax, 2
dec eax
mov dword [esp + 0x34], ecx
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x44]
push eax
push edx
push edi
mov edx, edi
call fcn.1014ae60
mov esi, dword [esp + 0x24]
add esp, 0x14
mov edx, dword [esp + 0x3c]
cmp edx, esi
jae 0x1014b2be
mov eax, edx
mov ecx, edi
sub eax, dword [esp + 0x54]
sar eax, 2
dec eax
cmp edi, edx
jae 0x1014b2be
mov ebx, dword [esp + 0x4c]
mov esi, eax
mov eax, dword [ecx]
add ecx, 4
mov dword [ebx + eax*4], esi
cmp ecx, edx
jb 0x1014b2a6
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
cmp eax, esi
jae 0x1014b308
mov ecx, edx
mov edx, eax
sub edx, dword [esp + 0x54]
sar edx, 2
dec edx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x3c]
cmp ecx, eax
jae 0x1014b308
mov edx, dword [esp + 0x24]
mov esi, eax
mov ebx, dword [esp + 0x4c]
mov eax, dword [ecx]
add ecx, 4
mov dword [ebx + eax*4], edx
cmp ecx, esi
jb 0x1014b2e8
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
sub eax, edx
and eax, 0xfffffffc
cmp eax, 4
jle 0x1014b370
mov ecx, dword [esp + 0x40]
lea eax, [ebp*4]
add eax, ebp
mov dword [esp + eax*4 + 0x68], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + eax*4 + 0x60], 0
mov dword [esp + eax*4 + 0x64], edx
mov dword [esp + eax*4 + 0x6c], 0
mov dword [esp + eax*4 + 0x70], 0
mov dword [esp + eax*4 + 0x74], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x20], ebp
add ebp, 2
mov dword [esp + eax*4 + 0x78], edi
mov dword [esp + eax*4 + 0x7c], esi
mov dword [esp + eax*4 + 0x80], 0xfffffffe
mov dword [esp + eax*4 + 0x84], ecx
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x40]
mov ecx, esi
sub ecx, eax
sub edx, edi
sar ecx, 2
sar edx, 2
cmp edx, ecx
jg 0x1014b437
cmp edx, 1
jle 0x1014b427
lea esi, [ebp*4]
add esi, ebp
shl esi, 2
mov dword [esp + 0x1c], esi
mov dword [esp + esi + 0x64], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + esi + 0x60], ebx
mov esi, dword [esp + 0x10]
mov dword [esp + eax + 0x68], esi
test ecx, 0xffff0000
je 0x1014b3e9
test ecx, 0xff000000
je 0x1014b3d7
sar ecx, 0x18
movzx eax, cl
mov eax, dword [eax*4 + 0x101c5580]
add eax, 0x18
jmp 0x1014b40d
sar ecx, 0x10
movzx eax, cl
mov eax, dword [eax*4 + 0x101c5580]
add eax, 0x10
jmp 0x1014b40d
test ecx, 0xff00
je 0x1014b403
sar ecx, 8
movzx eax, cl
mov eax, dword [eax*4 + 0x101c5580]
add eax, 8
jmp 0x1014b40d
movzx eax, cl
mov eax, dword [eax*4 + 0x101c5580]
mov ecx, dword [esp + 0x1c]
inc ebp
mov dword [esp + 0x14], ebp
mov dword [esp + ecx + 0x6c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + ecx + 0x70], eax
jmp 0x1014b545
cmp ecx, 1
jle 0x1014b6d2
mov edi, eax
jmp 0x1014b4c6
cmp ecx, 1
jle 0x1014b53c
mov eax, dword [esp + 0x3c]
lea esi, [ebp*4]
add esi, ebp
mov dword [esp + esi*4 + 0x60], ebx
mov dword [esp + esi*4 + 0x64], edi
mov dword [esp + esi*4 + 0x68], eax
test edx, 0xffff0000
je 0x1014b48d
test edx, 0xff000000
je 0x1014b47b
sar edx, 0x18
movzx eax, dl
mov eax, dword [eax*4 + 0x101c5580]
add eax, 0x18
jmp 0x1014b4b1
sar edx, 0x10
movzx eax, dl
mov eax, dword [eax*4 + 0x101c5580]
add eax, 0x10
jmp 0x1014b4b1
test edx, 0xff00
je 0x1014b4a7
sar edx, 8
movzx eax, dl
mov eax, dword [eax*4 + 0x101c5580]
add eax, 8
jmp 0x1014b4b1
movzx eax, dl
mov eax, dword [eax*4 + 0x101c5580]
mov edi, dword [esp + 0x40]
inc ebp
mov dword [esp + esi*4 + 0x6c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + esi*4 + 0x70], eax
mov dword [esp + 0x14], ebp
test ecx, 0xffff0000
je 0x1014b508
test ecx, 0xff000000
je 0x1014b4ef
mov edx, dword [esp + 0x10]
sar ecx, 0x18
movzx eax, cl
mov esi, dword [eax*4 + 0x101c5580]
add esi, 0x18
jmp 0x1014b243
mov edx, dword [esp + 0x10]
sar ecx, 0x10
movzx eax, cl
mov esi, dword [eax*4 + 0x101c5580]
add esi, 0x10
jmp 0x1014b243
test ecx, 0xff00
je 0x1014b529
mov edx, dword [esp + 0x10]
sar ecx, 8
movzx eax, cl
mov esi, dword [eax*4 + 0x101c5580]
add esi, 8
jmp 0x1014b243
mov edx, dword [esp + 0x10]
movzx eax, cl
mov esi, dword [eax*4 + 0x101c5580]
jmp 0x1014b243
cmp edx, 1
jle 0x1014b6d2
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
test edx, 0xffff0000
je 0x1014b58f
test edx, 0xff000000
je 0x1014b576
sar edx, 0x18
movzx eax, dl
mov edx, dword [esp + 0x10]
mov esi, dword [eax*4 + 0x101c5580]
add esi, 0x18
jmp 0x1014b243
sar edx, 0x10
movzx eax, dl
mov edx, dword [esp + 0x10]
mov esi, dword [eax*4 + 0x101c5580]
add esi, 0x10
jmp 0x1014b243
test edx, 0xff00
je 0x1014b5b0
sar edx, 8
movzx eax, dl
mov edx, dword [esp + 0x10]
mov esi, dword [eax*4 + 0x101c5580]
add esi, 8
jmp 0x1014b243
movzx eax, dl
mov edx, dword [esp + 0x10]
mov esi, dword [eax*4 + 0x101c5580]
jmp 0x1014b243
cmp esi, 0xfffffffe
jne 0x1014b70d
dec ebp
mov dword [esp + 0x14], ebp
lea eax, [ebp*4]
add eax, ebp
cmp dword [esp + eax*4 + 0x6c], 0
mov ecx, dword [esp + eax*4 + 0x68]
mov esi, dword [esp + eax*4 + 0x64]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x40], ecx
jne 0x1014b6a3
sub ebx, dword [esp + 0x4c]
lea edx, [esi - 4]
mov eax, ecx
sar ebx, 2
sub eax, dword [esp + 0x54]
mov dword [esp + 0x34], eax
sar eax, 2
dec eax
mov dword [esp + 0x1c], eax
cmp edi, edx
ja 0x1014b654
mov esi, edx
mov ecx, eax
sub esi, dword [esp + 0x54]
mov eax, dword [edi]
sub eax, ebx
js 0x1014b645
mov ebp, dword [esp + 0x4c]
cmp dword [ebp + eax*4], ecx
lea ebp, [ebp + eax*4]
jne 0x1014b645
add edx, 4
add esi, 4
mov dword [edx], eax
mov eax, esi
sar eax, 2
mov dword [ebp], eax
add edi, 4
cmp edi, edx
jbe 0x1014b621
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
lea eax, [edx + 4]
add esi, 0xfffffffc
mov dword [esp + 0x24], eax
cmp eax, ecx
jae 0x1014b6d2
mov ebp, dword [esp + 0x34]
nop word [eax + eax]
mov eax, dword [esi]
sub eax, ebx
js 0x1014b694
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x1c]
lea edx, [edx + eax*4]
cmp dword [edx], edi
jne 0x1014b694
sub ecx, 4
sub ebp, 4
mov dword [ecx], eax
mov eax, ebp
sar eax, 2
mov dword [edx], eax
sub esi, 4
cmp ecx, dword [esp + 0x24]
ja 0x1014b670
mov ebp, dword [esp + 0x14]
jmp 0x1014b6d2
mov eax, dword [esp + 0x20]
test eax, eax
js 0x1014b6b6
lea eax, [eax + eax*4]
mov dword [esp + eax*4 + 0x6c], 0xffffffff
sub ebx, dword [esp + 0x4c]
sar ebx, 2
push ebx
push edx
mov edx, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x58]
push esi
push edi
call fcn.1014b060
add esp, 0x14
test ebp, ebp
je 0x1014c181
dec ebp
mov dword [esp + 0x14], ebp
lea eax, [ebp*4]
add eax, ebp
mov ebx, dword [esp + eax*4 + 0x60]
mov edx, dword [esp + eax*4 + 0x68]
mov edi, dword [esp + eax*4 + 0x64]
mov esi, dword [esp + eax*4 + 0x6c]
mov eax, dword [esp + eax*4 + 0x70]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], eax
jmp 0x1014b243
cmp dword [edi], 0
mov esi, dword [esp + 0x4c]
jl 0x1014b740
mov eax, edi
mov ecx, edi
nop word [eax + eax]
mov eax, dword [eax]
add edi, 4
sub ecx, dword [esp + 0x54]
sar ecx, 2
mov dword [esi + eax*4], ecx
mov eax, edi
cmp edi, edx
jae 0x1014b73c
cmp dword [eax], 0
mov ecx, edi
jge 0x1014b720
mov dword [esp + 0x3c], eax
cmp edi, edx
jae 0x1014b6d2
mov ecx, dword [edi]
mov edx, edi
mov eax, edi
nop word [eax + eax]
not ecx
mov dword [edx], ecx
lea edx, [eax + 4]
mov ecx, dword [edx]
mov eax, edx
test ecx, ecx
js 0x1014b750
mov eax, dword [esi + ecx*4]
cmp eax, dword [ebx + ecx*4]
je 0x1014b778
mov ecx, edx
sub ecx, edi
sar ecx, 2
inc ecx
call fcn.1014aa30
mov esi, eax
jmp 0x1014b77b
or esi, 0xffffffff
lea ecx, [edx + 4]
mov dword [esp + 0x3c], ecx
cmp ecx, dword [esp + 0x10]
jae 0x1014b7ca
mov edx, ecx
mov eax, edi
sub edx, dword [esp + 0x54]
sar edx, 2
dec edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], edx
cmp edi, ecx
jae 0x1014b7ca
mov ebx, dword [esp + 0x4c]
mov ebp, edi
mov dword [esp + 0x34], edi
nop word [eax + eax]
mov eax, dword [eax]
mov dword [ebx + eax*4], edx
lea eax, [ebp + 4]
mov ebp, eax
cmp eax, ecx
jb 0x1014b7b0
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x48]
mov eax, ecx
sub eax, edi
sar eax, 2
mov dword [esp + 0x1c], eax
mov edx, dword [edx + 4]
mov dword [esp + 0x30], edx
cmp eax, edx
jg 0x1014b7ef
sub edx, eax
mov eax, dword [esp + 0x48]
mov dword [eax + 4], edx
jmp 0x1014b84a
mov edx, dword [esp + 0x48]
cmp dword [edx], 0
mov edx, dword [esp + 0x10]
jne 0x1014b832
mov esi, dword [esp + 0x48]
add dword [esi + 0xc], eax
mov eax, dword [esp + 0x20]
test eax, eax
js 0x1014b816
lea eax, [eax + eax*4]
mov dword [esp + eax*4 + 0x6c], 0xffffffff
mov eax, edx
sub eax, ecx
and eax, 0xfffffffc
cmp eax, 4
jle 0x1014b6d2
mov edi, ecx
mov esi, 0xfffffffd
jmp 0x1014b243
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x48]
mov eax, dword [eax + 8]
sub eax, dword [esp + 0x1c]
add eax, dword [esp + 0x30]
dec dword [edx]
mov dword [edx + 4], eax
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], edx
sub dword [esp + 0x28], ecx
sar dword [esp + 0x28], 2
cmp eax, dword [esp + 0x28]
jg 0x1014b8a5
lea eax, [ebp*4]
add eax, ebp
inc ebp
mov dword [esp + 0x14], ebp
mov dword [esp + eax*4 + 0x68], edx
mov edx, dword [esp + 0x20]
mov dword [esp + eax*4 + 0x60], ebx
mov dword [esp + eax*4 + 0x70], edx
mov edx, ecx
mov dword [esp + eax*4 + 0x64], ecx
mov dword [esp + eax*4 + 0x6c], 0xfffffffd
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], edx
lea ebx, [ebx + eax*4]
mov dword [esp + 0x2c], ebx
jmp 0x1014b247
cmp dword [esp + 0x28], 1
mov eax, dword [esp + 0x18]
lea eax, [ebx + eax*4]
mov dword [esp + 0x24], eax
jle 0x1014b8f1
mov edx, dword [esp + 0x24]
lea eax, [ebp*4]
add eax, ebp
inc ebp
mov dword [esp + 0x14], ebp
mov dword [esp + eax*4 + 0x60], edx
mov edx, dword [esp + 0x20]
mov dword [esp + eax*4 + 0x64], edi
mov edi, ecx
mov dword [esp + eax*4 + 0x6c], esi
mov esi, 0xfffffffd
mov dword [esp + eax*4 + 0x70], edx
mov edx, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x68], ecx
jmp 0x1014b243
mov ebx, eax
mov edx, ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x10], edx
jmp 0x1014b243
mov ecx, edx
sub ecx, edi
sar ecx, 2
mov dword [esp + 0x30], ecx
cmp ecx, 8
jg 0x1014b975
lea esi, [edi + 4]
cmp esi, edx
jae 0x1014b96b
nop dword [eax]
mov edx, dword [esi]
lea eax, [esi - 4]
mov ecx, dword [eax]
mov dword [esp + 0x1c], edx
mov edx, dword [ebx + edx*4]
sub edx, dword [ebx + ecx*4]
jns 0x1014b94f
mov ebp, dword [esp + 0x1c]
mov dword [eax + 4], ecx
sub eax, 4
cmp edi, eax
ja 0x1014b94f
mov ecx, dword [eax]
test ecx, ecx
js 0x1014b937
mov edx, dword [ebx + ebp*4]
sub edx, dword [ebx + ecx*4]
js 0x1014b937
test edx, edx
jne 0x1014b955
not dword [eax]
mov edx, dword [esp + 0x10]
add esi, 4
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
cmp esi, edx
jb 0x1014b920
mov ebp, dword [esp + 0x14]
mov esi, 0xfffffffd
jmp 0x1014b243
mov eax, esi
dec esi
test eax, eax
jne 0x1014baa4
mov edx, ecx
mov dword [esp + 0x1c], edx
test cl, 1
jne 0x1014b9c0
lea edx, [ecx - 1]
mov dword [esp + 0x1c], edx
mov eax, edx
test eax, eax
jns 0x1014b99b
add eax, 1
sar eax, 1
mov ecx, dword [edi + edx*4]
lea esi, [edi + eax*4]
mov eax, dword [esi]
mov dword [esp + 0x34], ecx
mov eax, dword [ebx + eax*4]
cmp eax, dword [ebx + ecx*4]
mov ecx, dword [esp + 0x30]
jge 0x1014b9c0
mov eax, dword [esi]
mov dword [edi + edx*4], eax
mov eax, dword [esp + 0x34]
mov dword [esi], eax
mov eax, edx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
sub esi, 1
js 0x1014b9ed
mov ebp, dword [esp + 0x1c]
push ebp
push esi
mov edx, edi
mov ecx, ebx
call fcn.1014aa90
add esp, 8
sub esi, 1
jns 0x1014b9d2
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
test cl, 1
jne 0x1014ba0f
mov edx, dword [esp + 0x1c]
mov ecx, dword [edi]
push edx
push 0
mov eax, dword [edi + edx*4]
mov dword [edi], eax
mov dword [edi + edx*4], ecx
mov edx, edi
mov ecx, ebx
call fcn.1014aa90
add esp, 8
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x24], eax
test eax, eax
jle 0x1014ba42
mov ebp, eax
nop
mov esi, dword [edi]
mov edx, edi
mov eax, dword [edi + ebp*4]
mov ecx, ebx
push ebp
push 0
mov dword [edi], eax
call fcn.1014aa90
mov dword [edi + ebp*4], esi
add esp, 8
dec ebp
test ebp, ebp
jg 0x1014ba20
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [edx - 4]
mov dword [esp + 0x3c], eax
cmp edi, eax
jae 0x1014ba9a
mov ecx, eax
mov eax, dword [eax]
mov eax, dword [ebx + eax*4]
mov dword [esp + 0x24], eax
lea eax, [ecx - 4]
mov dword [esp + 0x40], eax
mov ecx, eax
cmp edi, eax
ja 0x1014ba8a
mov ebp, dword [esp + 0x24]
mov esi, eax
nop
mov edx, dword [eax]
cmp dword [ebx + edx*4], ebp
jne 0x1014ba8a
not edx
mov dword [eax], edx
lea eax, [esi - 4]
mov ecx, eax
mov dword [esp + 0x40], eax
mov esi, eax
cmp edi, ecx
jbe 0x1014ba70
mov dword [esp + 0x3c], eax
cmp edi, ecx
jb 0x1014ba53
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov esi, 0xfffffffd
jmp 0x1014b243
push edx
mov edx, edi
mov ecx, ebx
call fcn.1014ab20
mov edx, dword [edi]
mov dword [esp + 0x40], eax
mov ecx, dword [eax]
mov dword [edi], ecx
mov ecx, ebx
mov dword [eax], edx
mov edx, edi
mov eax, dword [edi]
mov eax, dword [ebx + eax*4]
push eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x20]
lea eax, [edi + 4]
push eax
call fcn.1014ae60
mov ecx, dword [esp + 0x58]
add esp, 0x18
mov edx, dword [esp + 0x3c]
mov eax, ecx
sub eax, edx
mov dword [esp + 0x38], ecx
sar eax, 2
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], edx
cmp eax, dword [esp + 0x1c]
je 0x1014c117
mov eax, dword [edx]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x24]
cmp dword [ecx + eax*4], edx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
je 0x1014bb35
mov ecx, dword [esp + 0x1c]
call fcn.1014aa30
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x44], eax
jmp 0x1014bb3d
mov dword [esp + 0x44], 0xffffffff
mov eax, edx
mov dword [esp + 0x24], edi
sub eax, dword [esp + 0x54]
sar eax, 2
dec eax
cmp edi, edx
jae 0x1014bb6f
mov ebx, dword [esp + 0x4c]
mov ecx, edi
mov ebp, eax
mov eax, dword [ecx]
add ecx, 4
mov dword [ebx + eax*4], ebp
cmp ecx, edx
jb 0x1014bb57
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
cmp ecx, dword [esp + 0x10]
jae 0x1014bbaf
mov eax, edx
mov edx, ecx
sub edx, dword [esp + 0x54]
sar edx, 2
dec edx
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x28]
cmp eax, ecx
jae 0x1014bbaf
mov ebp, dword [esp + 0x34]
mov edx, eax
mov ebx, dword [esp + 0x4c]
mov eax, dword [edx]
add edx, 4
mov dword [ebx + eax*4], ebp
cmp edx, ecx
jb 0x1014bb97
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov eax, ecx
sub eax, edx
and eax, 0xfffffffc
cmp eax, 4
jle 0x1014bc0d
mov eax, ecx
sub eax, edx
mov edx, dword [esp + 0x48]
sar eax, 2
mov dword [esp + 0x24], eax
mov edx, dword [edx + 4]
cmp eax, edx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x28]
jg 0x1014bbf1
mov ecx, dword [esp + 0x48]
sub dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x38]
jmp 0x1014bca6
mov edx, dword [esp + 0x48]
cmp dword [edx], 0
mov edx, dword [esp + 0x28]
jne 0x1014bc8a
mov ecx, dword [esp + 0x48]
add dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x38]
mov eax, ecx
sub eax, edx
and eax, 0xfffffffc
cmp eax, 4
jle 0x1014bc2c
mov eax, dword [esp + 0x20]
test eax, eax
js 0x1014bc2c
lea eax, [eax + eax*4]
mov dword [esp + eax*4 + 0x6c], 0xffffffff
mov eax, dword [esp + 0x10]
sub eax, ecx
mov dword [esp + 0x28], edx
sub dword [esp + 0x28], edi
sar dword [esp + 0x28], 2
sar eax, 2
cmp dword [esp + 0x28], eax
jg 0x1014c0e0
cmp dword [esp + 0x28], 1
jle 0x1014c0cc
lea eax, [ebp*4]
add eax, ebp
inc ebp
mov dword [esp + 0x14], ebp
mov dword [esp + eax*4 + 0x60], ebx
mov dword [esp + eax*4 + 0x64], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x68], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + eax*4 + 0x6c], esi
mov dword [esp + eax*4 + 0x70], ecx
mov dword [esp + 0x10], edx
jmp 0x1014b243
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x48]
mov eax, dword [eax + 8]
sub eax, dword [esp + 0x24]
add eax, dword [esp + 0x1c]
dec dword [edx]
mov dword [edx + 4], eax
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x1c], eax
mov eax, edx
sub eax, edi
sar eax, 2
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
lea eax, [ebx + eax*4]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x1c]
mov eax, ecx
jg 0x1014bed9
sub eax, edx
sar eax, 2
cmp dword [esp + 0x1c], eax
jg 0x1014bd92
cmp dword [esp + 0x30], 1
jle 0x1014bd4e
mov ecx, dword [esp + 0x50]
lea eax, [ebp*4]
add eax, ebp
add ebp, 2
mov dword [esp + 0x14], ebp
mov dword [esp + eax*4 + 0x64], edx
mov edx, dword [esp + 0x44]
mov dword [esp + eax*4 + 0x60], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + eax*4 + 0x6c], edx
mov edx, dword [esp + 0x20]
mov dword [esp + eax*4 + 0x68], ecx
mov dword [esp + eax*4 + 0x70], edx
mov dword [esp + eax*4 + 0x78], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x84], edx
mov edx, dword [esp + 0x28]
mov dword [esp + eax*4 + 0x74], ebx
mov dword [esp + eax*4 + 0x7c], ecx
mov dword [esp + eax*4 + 0x80], esi
mov dword [esp + 0x10], edx
jmp 0x1014b243
cmp dword [esp + 0x1c], 1
jle 0x1014bf8c
mov edi, dword [esp + 0x50]
lea eax, [ebp*4]
add eax, ebp
mov dword [esp + eax*4 + 0x64], edx
mov edx, dword [esp + 0x44]
mov dword [esp + eax*4 + 0x60], edi
mov dword [esp + eax*4 + 0x68], ecx
mov dword [esp + eax*4 + 0x6c], edx
mov edx, dword [esp + 0x20]
inc ebp
mov dword [esp + eax*4 + 0x70], edx
mov edi, ecx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], ebp
jmp 0x1014b243
lea eax, [ebp*4]
add eax, ebp
lea edx, [esp + 0x60]
shl eax, 2
add edx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x5c], edx
lea edx, [esp + 0x64]
add edx, eax
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x68]
add edx, eax
mov dword [esp + 0x58], edx
lea edx, [esp + 0x6c]
add edx, eax
mov dword [esp + 0x34], edx
lea edx, [esp + 0x70]
add eax, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x24], eax
mov eax, ecx
sub eax, edx
sar eax, 2
cmp dword [esp + 0x30], eax
mov eax, dword [esp + 0x5c]
mov dword [eax], ebx
jg 0x1014be79
cmp dword [esp + 0x30], 1
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
mov dword [eax], esi
mov eax, dword [esp + 0x24]
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
mov dword [eax], ecx
jle 0x1014be5b
mov edx, dword [esp + 0x14]
inc ebp
mov eax, dword [esp + 0x50]
inc ebp
mov dword [esp + edx + 0x74], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebp
mov dword [esp + eax + 0x7c], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + eax + 0x80], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + eax + 0x78], edx
mov dword [esp + eax + 0x84], ecx
jmp 0x1014b243
mov ebx, dword [esp + 0x50]
mov edi, edx
mov esi, dword [esp + 0x44]
mov edx, ecx
inc ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebp
jmp 0x1014b243
mov eax, dword [esp + 0x1c]
add ebp, 2
mov dword [eax], ecx
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
mov dword [eax], esi
mov eax, dword [esp + 0x24]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], ebp
mov dword [esp + eax + 0x78], edi
mov edi, edx
mov dword [esp + eax + 0x74], ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + eax + 0x7c], edx
mov edx, dword [esp + 0x38]
mov dword [esp + eax + 0x80], esi
mov esi, dword [esp + 0x44]
mov dword [esp + eax + 0x84], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x10], edx
jmp 0x1014b243
sub eax, edx
sar eax, 2
cmp dword [esp + 0x30], eax
jg 0x1014bfa5
cmp dword [esp + 0x1c], 1
jle 0x1014bf4a
mov ecx, dword [esp + 0x50]
lea eax, [ebp*4]
add eax, ebp
add ebp, 2
mov dword [esp + 0x14], ebp
mov dword [esp + eax*4 + 0x60], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + eax*4 + 0x64], edx
mov dword [esp + eax*4 + 0x68], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + eax*4 + 0x6c], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + eax*4 + 0x70], ecx
mov dword [esp + eax*4 + 0x74], ebx
mov dword [esp + eax*4 + 0x78], edi
mov edi, dword [esp + 0x38]
mov dword [esp + eax*4 + 0x7c], edx
mov edx, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x80], esi
mov dword [esp + eax*4 + 0x84], ecx
jmp 0x1014b243
cmp dword [esp + 0x30], 1
jle 0x1014bf8c
mov ecx, dword [esp + 0x50]
lea eax, [ebp*4]
add eax, ebp
mov dword [esp + 0x10], edx
inc ebp
mov dword [esp + 0x14], ebp
mov dword [esp + eax*4 + 0x60], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + eax*4 + 0x64], edx
mov dword [esp + eax*4 + 0x68], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + eax*4 + 0x6c], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + eax*4 + 0x70], ecx
jmp 0x1014b243
mov ebx, dword [esp + 0x50]
mov edi, edx
mov esi, dword [esp + 0x44]
mov edx, ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x10], edx
jmp 0x1014b243
lea eax, [ebp*4]
add eax, ebp
lea edx, [esp + 0x60]
shl eax, 2
add edx, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x24], edx
lea edx, [esp + 0x64]
add edx, eax
mov dword [esp + 0x34], edx
lea edx, [esp + 0x68]
add edx, eax
mov dword [esp + 0x30], edx
lea edx, [esp + 0x6c]
add edx, eax
mov dword [esp + 0x38], edx
lea edx, [esp + 0x70]
add eax, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov eax, ecx
sub eax, edx
sar eax, 2
cmp dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
mov dword [eax], ebx
mov eax, dword [esp + 0x34]
mov dword [eax], edi
mov eax, dword [esp + 0x30]
mov dword [eax], edx
mov eax, dword [esp + 0x38]
mov dword [eax], esi
mov eax, dword [esp + 0x14]
jg 0x1014c080
cmp dword [esp + 0x1c], 1
jle 0x1014c05c
mov edi, dword [esp + 0x20]
inc ebp
mov dword [eax], edi
inc ebp
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], ebp
mov dword [esp + edi + 0x74], eax
mov eax, dword [esp + 0x44]
mov dword [esp + edi + 0x78], edx
mov edx, dword [esp + 0x10]
mov dword [esp + edi + 0x7c], ecx
mov dword [esp + edi + 0x80], eax
mov eax, dword [esp + 0x20]
mov dword [esp + edi + 0x84], eax
mov edi, ecx
jmp 0x1014b243
mov ebx, dword [esp + 0x20]
mov edi, edx
mov esi, dword [esp + 0x44]
mov edx, ecx
mov dword [eax], ebx
inc ebp
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebp
jmp 0x1014b243
mov edi, dword [esp + 0x20]
add ebp, 2
mov dword [eax], edi
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ebp
mov dword [esp + edi + 0x74], ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + edi + 0x78], ecx
mov dword [esp + edi + 0x7c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + edi + 0x80], esi
mov esi, dword [esp + 0x44]
mov dword [esp + edi + 0x84], eax
mov edi, edx
mov edx, ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x10], edx
jmp 0x1014b243
cmp eax, 1
jle 0x1014b6d2
mov edx, dword [esp + 0x10]
mov edi, ecx
jmp 0x1014b243
cmp eax, 1
jle 0x1014c103
lea eax, [ebp*4]
add eax, ebp
mov dword [esp + eax*4 + 0x60], ebx
mov dword [esp + eax*4 + 0x64], edi
mov dword [esp + eax*4 + 0x68], edx
mov dword [esp + eax*4 + 0x6c], esi
jmp 0x1014bd7a
cmp dword [esp + 0x28], 1
jle 0x1014b6d2
mov dword [esp + 0x10], edx
jmp 0x1014b243
mov esi, dword [esp + 0x48]
mov ecx, dword [esi + 4]
cmp eax, ecx
jg 0x1014c129
sub ecx, eax
mov dword [esi + 4], ecx
jmp 0x1014c15f
mov edx, dword [esi]
test edx, edx
jne 0x1014c14e
add dword [esi + 0xc], eax
mov eax, dword [esp + 0x20]
test eax, eax
js 0x1014b6d2
lea eax, [eax + eax*4]
mov dword [esp + eax*4 + 0x6c], 0xffffffff
jmp 0x1014b6d2
mov eax, dword [esi + 8]
sub eax, dword [esp + 0x30]
add eax, ecx
mov dword [esi + 4], eax
lea eax, [edx - 1]
mov dword [esi], eax
mov edx, dword [esp + 0x10]
mov ecx, edx
sub ecx, edi
sar ecx, 2
call fcn.1014aa30
mov esi, eax
mov eax, dword [esp + 0x18]
lea ebx, [ebx + eax*4]
mov dword [esp + 0x2c], ebx
jmp 0x1014b247
mov ecx, dword [esp + 0x560]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10151433
add esp, 0x554
ret