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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
mov eax, dword [0x101cc284]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x54], ebx
test byte [ebx + 0xcc], 4
je 0x1019a7a6
xor eax, eax
inc eax
jmp 0x1019b76c
mov eax, dword [ebx + 4]
xor edi, edi
mov dword [esp + 0x60], edi
mov ecx, edi
mov edx, eax
test eax, eax
je 0x1019a7ca
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + ecx*4]
inc ecx
mov dword [eax + 0x10], edi
mov eax, dword [ebx + 4]
mov edx, eax
cmp ecx, eax
jb 0x1019a7b7
mov ecx, edi
cmp dword [ebx + 8], edi
jbe 0x1019a809
mov eax, dword [ebx + 0x14]
mov esi, dword [eax + ecx*4]
mov edx, dword [esi + 4]
cmp dword [ebx + 0x74], edx
je 0x1019a7fe
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + edx*4]
mov eax, dword [edx + 4]
and eax, 0x402
cmp eax, 2
jne 0x1019a7fe
mov eax, dword [esi + 0xc]
inc eax
cmp dword [edx + 0x10], eax
jae 0x1019a7fe
mov dword [edx + 0x10], eax
inc ecx
cmp ecx, dword [ebx + 8]
jb 0x1019a7d1
mov eax, dword [ebx + 4]
mov edx, eax
mov esi, edi
test eax, eax
je 0x1019a825
mov ecx, dword [ebx + 0x10]
push 4
pop ebx
mov eax, dword [ecx]
add ecx, ebx
add esi, dword [eax + 0x10]
sub edx, 1
jne 0x1019a815
mov ebx, dword [esp + 0x54]
xor ecx, ecx
mov eax, esi
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.1010328d
mov dword [esp + 0x64], eax
test eax, eax
je 0x1019b75a
mov ecx, esi
shl ecx, 2
push ecx
push edi
push eax
call sub.msvcrt.dll_memset
xor esi, esi
add esp, 0xc
cmp dword [ebx + 4], esi
jbe 0x1019a885
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx + esi*4]
mov eax, dword [esp + 0x64]
mov ecx, dword [edx + 0x10]
neg ecx
lea eax, [eax + edi*4]
sbb ecx, ecx
and ecx, eax
mov dword [edx + 0x1c], ecx
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx + esi*4]
add edi, dword [eax + 0x10]
inc esi
cmp esi, dword [ebx + 4]
jb 0x1019a860
xor ecx, ecx
cmp dword [ebx + 8], ecx
jbe 0x1019a8bc
mov eax, dword [ebx + 0x14]
mov esi, dword [eax + ecx*4]
mov edx, dword [esi + 4]
cmp dword [ebx + 0x74], edx
je 0x1019a8b6
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + edx*4]
mov edx, dword [eax + 0x1c]
test edx, edx
je 0x1019a8b6
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
inc eax
cmp dword [edx + edi*4], eax
jae 0x1019a8b6
mov dword [edx + edi*4], eax
inc ecx
cmp ecx, dword [ebx + 8]
jb 0x1019a88c
xor edx, edx
cmp dword [ebx + 0xc], edx
jbe 0x1019a928
mov eax, dword [ebx + 0x18]
mov esi, dword [eax + edx*4]
mov ecx, dword [esi]
mov eax, ecx
and eax, 0xf0000000
cmp eax, 0x60000000
je 0x1019a8e7
and ecx, 0xfff00000
cmp ecx, 0x11000000
jne 0x1019a922
xor edi, edi
cmp dword [esi + 4], edi
jbe 0x1019a922
mov eax, dword [esi + 8]
mov ecx, dword [eax + edi*4]
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x3c], eax
mov ecx, dword [eax + 4]
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x1019a91c
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0xc]
mov dword [ecx + eax*4], 4
inc edi
cmp edi, dword [esi + 4]
jb 0x1019a8ee
inc edx
cmp edx, dword [ebx + 0xc]
jb 0x1019a8c3
test byte [ebx + 0x6c], 6
jne 0x1019acec
mov ecx, ebx
call fcn.101a0abe
xor ecx, ecx
mov dword [esp + 0x1c], ecx
cmp dword [ebx + 0xc], ecx
jbe 0x1019acec
mov esi, dword [ebx + 0x18]
mov eax, dword [esi + ecx*4]
mov dword [esp + 0x34], eax
cmp dword [eax], 0x20400001
jne 0x1019acde
mov edi, dword [eax + 8]
mov edx, dword [ebx + 0x14]
mov eax, dword [edi]
mov ecx, dword [edx + eax*4]
mov dword [esp + 0x3c], ecx
mov eax, dword [ecx + 4]
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx + eax*4]
mov ecx, dword [esp + 0x1c]
test byte [eax + 4], 2
je 0x1019acde
mov eax, dword [edi + 4]
mov eax, dword [edx + eax*4]
mov edx, dword [ebx + 0x10]
mov dword [esp + 0x48], eax
mov eax, dword [eax + 4]
mov eax, dword [edx + eax*4]
test byte [eax + 4], 2
je 0x1019acde
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x48]
mov edi, dword [esi + eax*4]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x40], edi
mov eax, dword [eax + 0x48]
mov esi, dword [esi + eax*4]
mov eax, dword [edi]
mov dword [esp + 0x14], esi
cmp eax, 0x20500001
je 0x1019a9d6
and eax, 0xfff00000
cmp eax, 0x50000000
jne 0x1019acde
mov eax, dword [esi]
cmp eax, 0x20500001
je 0x1019a9ef
and eax, 0xfff00000
cmp eax, 0x50000000
jne 0x1019acde
mov edx, dword [esi + 4]
mov eax, dword [edi + 4]
shr eax, 1
shr edx, 1
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
add edx, eax
mov eax, dword [ebx + 0x6c]
not eax
and eax, 0x20
or eax, 0x40
shr eax, 5
cmp edx, eax
jb 0x1019acde
push 4
pop eax
cmp edx, eax
ja 0x1019acde
mov eax, dword [edi + 0x10]
mov edx, dword [ebx + 0x14]
mov eax, dword [eax]
mov eax, dword [edx + eax*4]
cmp ecx, dword [eax + 0x54]
jne 0x1019acde
cmp ecx, dword [eax + 0x58]
jne 0x1019acde
mov eax, dword [esi + 0x10]
mov eax, dword [eax]
mov eax, dword [edx + eax*4]
cmp ecx, dword [eax + 0x54]
jne 0x1019acde
cmp ecx, dword [eax + 0x58]
jne 0x1019acde
mov eax, dword [esp + 0xc]
mov edi, dword [edi + 8]
shl eax, 2
push eax
lea eax, [esp + 0x80]
push edi
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x88]
mov esi, dword [esi + 8]
add esp, 0xc
shl eax, 2
push eax
mov eax, dword [esp + 0x10]
shl eax, 2
add eax, ecx
push esi
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x18]
add esp, 0xc
shl eax, 2
push eax
add eax, edi
push eax
lea eax, [esp + 0x94]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov edi, dword [esp + 0xc]
shl eax, 2
shl edi, 2
push eax
add eax, esi
push eax
lea eax, [esp + 0x94]
add eax, edi
push eax
call sub.msvcrt.dll_memcpy
mov esi, dword [esp + 0x1c]
add esp, 0xc
add esi, dword [esp + 0xc]
xor eax, eax
mov ecx, ebx
push 0xffffffffffffffff
push eax
push dword [esp + 0x3c]
push eax
push eax
push esi
lea eax, [esp + 0x94]
push eax
call fcn.1019d9f1
test eax, eax
je 0x1019ab2b
push 0xffffffffffffffff
xor eax, eax
mov ecx, ebx
push eax
push dword [esp + 0x3c]
push eax
push eax
push esi
lea eax, [esp + 0xa4]
push eax
call fcn.1019d9f1
test eax, eax
je 0x1019ab2b
and dword [esp + 0x44], 0
jmp 0x1019abfb
mov esi, dword [esp + 0x40]
lea eax, [esp + 0x6c]
push edi
mov esi, dword [esi + 8]
push esi
push eax
call sub.msvcrt.dll_memcpy
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x78]
mov eax, dword [esp + 0x1c]
add esp, 0xc
shl eax, 2
mov edi, dword [edi + 8]
push eax
add eax, edi
push eax
mov eax, dword [esp + 0x14]
shl eax, 2
add eax, ecx
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x18]
add esp, 0xc
shl eax, 2
push eax
add eax, esi
push eax
lea eax, [esp + 0xa4]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xa8]
add esp, 0xc
shl eax, 2
push eax
mov eax, dword [esp + 0x10]
shl eax, 2
add eax, ecx
push edi
push eax
call sub.msvcrt.dll_memcpy
mov edi, dword [esp + 0x40]
add esp, 0xc
mov esi, dword [esp + 0x10]
xor eax, eax
add esi, dword [esp + 0xc]
mov ecx, ebx
push 0xffffffffffffffff
push eax
push edi
push eax
push eax
push esi
lea eax, [esp + 0x84]
push eax
call fcn.1019d9f1
test eax, eax
je 0x1019acda
push 0xffffffffffffffff
push 0
push edi
push 0
push 0
push esi
lea eax, [esp + 0xb4]
mov ecx, ebx
push eax
call fcn.1019d9f1
test eax, eax
je 0x1019acda
mov dword [esp + 0x44], 1
call fcn.1018c2f4
test eax, eax
je 0x1019ac0f
mov ecx, eax
call fcn.1018bb70
mov edi, eax
jmp 0x1019ac11
xor edi, edi
test edi, edi
je 0x1019b75a
push 0
push 1
lea eax, [esi + esi]
mov ecx, edi
push eax
mov eax, esi
and eax, 0xfffff
or eax, 0x50000000
push eax
call fcn.1018bba6
mov edx, eax
mov dword [esp + 0x2c], edx
test edx, edx
js 0x1019aeb1
mov edx, dword [esp + 0x34]
mov ecx, edi
push edx
call fcn.1018be94
mov esi, eax
test esi, esi
js 0x1019aeb5
cmp dword [esp + 0x44], 0
mov eax, dword [edx + 0x10]
mov ecx, dword [edi + 0x10]
mov eax, dword [eax]
mov dword [ecx], eax
lea eax, [esp + 0x7c]
je 0x1019ac72
lea eax, [esp + 0x6c]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xc]
lea esi, [esi + eax]
shl esi, 2
push esi
push dword [esp + 0x3c]
push dword [edi + 8]
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x8c]
cmp dword [esp + 0x44], 0
je 0x1019aca9
lea eax, [esp + 0x9c]
push esi
push eax
mov eax, dword [edi + 8]
add eax, esi
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebx + 0x18]
add esp, 8
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
mov dword [eax + edx*4], edi
call fcn.10146607
mov eax, dword [esp + 0x40]
and dword [eax], 0
mov eax, dword [esp + 0x14]
and dword [eax], 0
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x1c], ecx
cmp ecx, dword [ebx + 0xc]
jb 0x1019a948
mov ecx, ebx
call fcn.101a0abe
mov edx, dword [ebx + 0xc]
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x40], edx
test edx, edx
je 0x1019b749
mov eax, dword [ebx + 0x18]
mov edi, dword [eax + esi*4]
mov dword [esp + 0x4c], edi
mov ecx, dword [edi]
mov eax, ecx
and eax, 0xf0000000
cmp eax, 0x10000000
jb 0x1019b735
cmp eax, 0x40000000
ja 0x1019b735
and ecx, 0xfff00000
cmp ecx, 0x10000000
je 0x1019ad49
test byte [ebx + 0x6c], 6
jne 0x1019b735
mov ecx, edi
call fcn.1018c105
test eax, eax
jne 0x1019b735
mov edi, dword [edi + 0x10]
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x14], edi
mov dword [esp + 0x38], ecx
mov eax, dword [edi]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 4]
mov dword [esp + 0x3c], eax
mov edi, dword [esp + 0x3c]
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + edi*4]
mov edi, dword [esp + 0x14]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x44], eax
test eax, eax
je 0x1019b735
mov eax, dword [esp + 0x4c]
xor esi, esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x28], edx
mov esi, dword [eax + 4]
mov dword [esp + 0x1c], esi
test esi, esi
je 0x1019ae02
mov edx, dword [eax + 8]
mov edi, ecx
mov ebx, dword [ebx + 0x10]
mov eax, dword [edx]
cmp eax, 0xffffffff
je 0x1019ade4
mov esi, dword [esp + 0x34]
mov ecx, dword [edi + eax*4]
mov eax, dword [ecx + 4]
mov eax, dword [ebx + eax*4]
test byte [eax + 4], 2
je 0x1019add4
mov eax, dword [ecx + 0x48]
inc eax
cmp esi, eax
jae 0x1019add4
mov esi, eax
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
jne 0x1019adbb
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x1c]
push 4
pop eax
add edx, eax
sub esi, 1
mov dword [esp + 0x1c], esi
jne 0x1019adb0
mov ebx, dword [esp + 0x54]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x4c]
mov edx, dword [eax + 0xc]
test edx, edx
je 0x1019ae6f
mov eax, dword [edi]
mov esi, dword [esp + 0x28]
mov eax, dword [ecx + eax*4]
cmp esi, dword [eax + 0x54]
jbe 0x1019ae1e
mov esi, dword [eax + 0x54]
mov dword [esp + 0x28], esi
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x1019ae61
mov esi, dword [ebx + 0x14]
mov ebx, dword [ebx + 0x10]
mov edi, dword [esp + 0x34]
mov ecx, dword [esi + eax*4]
mov eax, dword [ecx + 4]
mov eax, dword [ebx + eax*4]
test byte [eax + 4], 2
je 0x1019ae49
mov eax, dword [ecx + 0x48]
inc eax
cmp edi, eax
jae 0x1019ae49
mov edi, eax
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
jne 0x1019ae30
mov ebx, dword [esp + 0x54]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x14]
push 4
pop eax
add edi, eax
mov dword [esp + 0x14], edi
sub edx, 1
jne 0x1019ae09
mov eax, dword [esp + 0x34]
mov edx, eax
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x28]
jae 0x1019b735
mov eax, dword [esp + 0x28]
cmp esi, edx
je 0x1019b43e
mov eax, dword [ebx + 0x18]
mov ecx, dword [esp + 0x4c]
mov edx, dword [eax + edx*4]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x5c], edx
cmp esi, eax
jae 0x1019aec2
mov esi, edx
mov dword [esp + 0x1c], esi
jmp 0x1019aec8
mov esi, dword [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.10146607
jmp 0x1019b75f
mov esi, ecx
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x24], eax
jae 0x1019aed6
mov edi, ecx
mov dword [esp + 0xc], edi
jmp 0x1019aedc
mov edi, edx
mov dword [esp + 0xc], edx
mov ecx, dword [esi]
mov edx, 0xfff00000
mov eax, dword [edi]
and ecx, edx
and eax, edx
mov dword [esp + 0x58], ecx
cmp ecx, eax
jne 0x1019b432
mov eax, dword [edi + 0x10]
mov edx, dword [ebx + 0x14]
mov eax, dword [eax]
mov ecx, dword [edx + eax*4]
mov eax, dword [esi + 0x10]
mov eax, dword [eax]
mov edx, dword [edx + eax*4]
mov eax, dword [edx + 4]
cmp eax, dword [ecx + 4]
jne 0x1019b432
mov eax, dword [edx + 8]
cmp eax, dword [ecx + 8]
jne 0x1019b432
mov eax, dword [edx + 0x14]
cmp eax, dword [ecx + 0x14]
jne 0x1019b432
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jne 0x1019b432
mov eax, dword [edi + 4]
add eax, dword [esi + 4]
mov edi, dword [edi + 0xc]
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x10], eax
add eax, edi
push 4
mov dword [esp + 0x24], edi
pop edi
mov dword [esp + 0x30], eax
cmp eax, edi
ja 0x1019b432
mov edi, dword [edx + 0xc]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x38], edi
mov dword [esp + 0x48], ecx
cmp edi, ecx
je 0x1019afa5
test byte [ebx + 0x6c], 6
jne 0x1019b432
mov eax, dword [ebx + 0x10]
mov edx, dword [edx + 4]
mov eax, dword [eax + edx*4]
test byte [eax + 4], 0x20
jne 0x1019b432
mov edx, dword [esp + 0x44]
push 4
mov eax, dword [edx + ecx*4]
add eax, dword [edx + edi*4]
pop ecx
cmp eax, ecx
ja 0x1019b432
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
cmp ecx, eax
jb 0x1019afb9
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x58]
xor edi, edi
mov ecx, 0x10000000
mov dword [esp + 0x14], edi
cmp eax, ecx
je 0x1019b375
cmp eax, 0x10100000
je 0x1019b375
mov eax, dword [esi]
and eax, 0xf0000000
cmp eax, ecx
jne 0x1019b04a
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x6c]
mov ecx, dword [esp + 0xc]
shl esi, 2
push esi
push dword [ecx + 8]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x1c]
add esp, 0xc
shl eax, 2
push eax
mov eax, dword [esp + 0x20]
push dword [eax + 8]
lea eax, [esp + 0x74]
add eax, esi
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x78]
add esp, 0xc
push dword [esp + 0x2c]
push edi
push dword [esp + 0x14]
push edi
push edi
push ecx
push eax
mov ecx, ebx
call fcn.1019d9f1
test eax, eax
je 0x1019b3e3
inc edi
jmp 0x1019b3e3
cmp eax, 0x20000000
jne 0x1019b227
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
shl ecx, 2
push ecx
mov edi, dword [eax + 8]
lea eax, [esp + 0x70]
push edi
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x78]
mov esi, dword [esi + 8]
add esp, 0xc
shl eax, 2
push eax
mov eax, dword [esp + 0x24]
shl eax, 2
add eax, ecx
push esi
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x2c]
add esp, 0xc
shl eax, 2
push eax
add eax, edi
push eax
lea eax, [esp + 0x84]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x88]
add esp, 0xc
shl eax, 2
push eax
add eax, esi
push eax
mov eax, dword [esp + 0x28]
shl eax, 2
add eax, ecx
push eax
call sub.msvcrt.dll_memcpy
mov edi, dword [esp + 0x18]
add esp, 0xc
mov ecx, dword [esp + 0x30]
xor eax, eax
push dword [esp + 0x2c]
push eax
push edi
push eax
push eax
push ecx
lea eax, [esp + 0x84]
mov ecx, ebx
push eax
call fcn.1019d9f1
push dword [esp + 0x2c]
mov esi, eax
mov ecx, ebx
xor eax, eax
push eax
push edi
push eax
push eax
push dword [esp + 0x44]
lea eax, [esp + 0x94]
push eax
call fcn.1019d9f1
test esi, esi
je 0x1019b121
test eax, eax
je 0x1019b121
xor edi, edi
inc edi
jmp 0x1019b125
mov edi, dword [esp + 0x14]
and dword [esp + 0x14], 0
test edi, edi
jne 0x1019b3ec
mov edi, dword [esp + 0x1c]
mov ecx, edi
call fcn.1018bfa2
test eax, eax
je 0x1019b411
mov eax, dword [esp + 0xc]
mov esi, dword [eax + 8]
mov eax, dword [esp + 0x20]
shl eax, 2
push eax
lea eax, [esp + 0xa0]
push esi
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xa8]
mov edi, dword [edi + 8]
add esp, 0xc
shl eax, 2
push eax
add eax, edi
push eax
mov eax, dword [esp + 0x28]
shl eax, 2
add eax, ecx
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x2c]
add esp, 0xc
shl eax, 2
push eax
add eax, esi
push eax
lea eax, [esp + 0x94]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x98]
add esp, 0xc
shl eax, 2
push eax
mov eax, dword [esp + 0x24]
shl eax, 2
add eax, ecx
push edi
push eax
call sub.msvcrt.dll_memcpy
mov edi, dword [esp + 0x18]
add esp, 0xc
xor eax, eax
mov ecx, ebx
push dword [esp + 0x2c]
push eax
push edi
push eax
push eax
push dword [esp + 0x44]
lea eax, [esp + 0xb4]
push eax
call fcn.1019d9f1
push dword [esp + 0x2c]
mov esi, eax
mov ecx, ebx
xor eax, eax
push eax
push edi
push eax
push eax
push dword [esp + 0x44]
lea eax, [esp + 0xa4]
push eax
call fcn.1019d9f1
test esi, esi
je 0x1019b411
test eax, eax
je 0x1019b411
xor eax, eax
inc eax
mov dword [esp + 0x14], eax
mov edi, eax
jmp 0x1019b3ec
cmp eax, 0x30000000
jne 0x1019b411
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
shl eax, 2
push eax
mov ebx, dword [ecx + 8]
lea eax, [esp + 0x70]
push ebx
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x78]
mov esi, dword [esp + 0x1c]
add esp, 0xc
shl esi, 2
mov edi, dword [eax + 8]
mov eax, dword [esp + 0x20]
push esi
shl eax, 2
add eax, ecx
push edi
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x2c]
add esp, 0xc
shl eax, 2
push eax
add eax, ebx
push eax
lea eax, [esp + 0x84]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [edi + esi]
lea ecx, [esp + 0x7c]
push esi
push eax
mov eax, dword [esp + 0x28]
shl eax, 2
add eax, ecx
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov eax, ecx
shl eax, 2
push eax
lea eax, [ebx + ecx*8]
push eax
lea eax, [esp + 0xb4]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xb8]
add esp, 0xc
lea eax, [edi + eax*8]
push esi
push eax
mov eax, dword [esp + 0x28]
shl eax, 2
add eax, ecx
push eax
call sub.msvcrt.dll_memcpy
mov edi, dword [esp + 0x18]
add esp, 0xc
mov ebx, dword [esp + 0x54]
xor eax, eax
mov ecx, ebx
push dword [esp + 0x2c]
push eax
push edi
push eax
push eax
push dword [esp + 0x44]
lea eax, [esp + 0x84]
push eax
call fcn.1019d9f1
push dword [esp + 0x2c]
mov esi, eax
xor eax, eax
push eax
push edi
push eax
push eax
push dword [esp + 0x44]
lea eax, [esp + 0x94]
mov ecx, ebx
push eax
call fcn.1019d9f1
push dword [esp + 0x2c]
mov dword [esp + 0x54], eax
mov ecx, ebx
xor eax, eax
push eax
push edi
push eax
push eax
push dword [esp + 0x44]
lea eax, [esp + 0xc4]
push eax
call fcn.1019d9f1
test esi, esi
je 0x1019b411
cmp dword [esp + 0x50], 0
je 0x1019b411
test eax, eax
je 0x1019b411
and dword [esp + 0x14], 0
xor edi, edi
inc edi
jmp 0x1019b3ec
mov eax, dword [esi + 8]
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x58], eax
mov eax, dword [eax]
mov ecx, dword [edx + eax*4]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 0x50], eax
mov eax, dword [eax]
mov edx, dword [edx + eax*4]
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
jne 0x1019b411
mov eax, dword [ecx + 8]
cmp eax, dword [edx + 8]
jne 0x1019b411
mov eax, dword [ecx + 0xc]
cmp eax, dword [edx + 0xc]
jne 0x1019b411
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x6c]
shl esi, 2
xor edi, edi
push esi
push dword [esp + 0x54]
inc edi
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x1c]
add esp, 0xc
shl eax, 2
push eax
push dword [esp + 0x5c]
lea eax, [esp + 0x74]
add eax, esi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
and dword [esp + 0x14], 0
test edi, edi
je 0x1019b411
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
je 0x1019b40d
mov edx, dword [esp + 0x44]
push 4
mov eax, dword [edx + eax*4]
add eax, dword [edx + ecx*4]
pop ecx
cmp ecx, eax
sbb eax, eax
not eax
and edi, eax
test edi, edi
jne 0x1019b450
mov esi, dword [esp + 0x40]
mov edx, dword [ebx + 0xc]
cmp edx, esi
jbe 0x1019b432
mov eax, dword [ebx + 0x18]
dec edx
mov dword [ebx + 0xc], edx
mov ecx, dword [eax + edx*4]
test ecx, ecx
je 0x1019b418
push ecx
call fcn.10146607
jmp 0x1019b415
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
inc edx
mov dword [esp + 0x18], edx
cmp edx, eax
jb 0x1019ae8b
jmp 0x1019b735
call fcn.1018c2f4
test eax, eax
je 0x1019b468
mov ecx, eax
call fcn.1018bb70
mov edi, eax
mov dword [esp + 0x10], eax
jmp 0x1019b46e
xor edi, edi
mov dword [esp + 0x10], edi
test edi, edi
je 0x1019b75a
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
push 0
push ecx
mov eax, dword [esi]
push dword [esp + 0x70]
xor eax, ecx
mov ecx, edi
and eax, 0xfffff
xor eax, dword [esi]
push eax
call fcn.1018bba6
mov edx, eax
mov dword [esp + 0x2c], edx
test edx, edx
js 0x1019aeb1
push esi
mov ecx, edi
call fcn.1018be94
mov esi, eax
test esi, esi
js 0x1019aeb5
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x38]
cmp ecx, esi
je 0x1019b50a
xor edx, edx
cmp dword [ebx + 8], edx
jbe 0x1019b4fc
mov edi, ecx
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + edx*4]
mov eax, dword [esp + 0x3c]
cmp eax, dword [ecx + 4]
jne 0x1019b4ee
cmp edi, dword [ecx + 0xc]
jne 0x1019b4ee
mov eax, dword [esp + 0x44]
mov dword [ecx + 0xc], esi
mov eax, dword [eax + esi*4]
add dword [ecx + 0x10], eax
inc edx
cmp edx, dword [ebx + 8]
jb 0x1019b4cd
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x44]
mov eax, dword [edx + ecx*4]
add dword [edx + esi*4], eax
and dword [edx + ecx*4], 0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0xc]
shl eax, 2
push eax
push dword [ecx + 0x10]
push dword [edi + 0x10]
call sub.msvcrt.dll_memcpy
mov esi, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [esi + 0xc]
shl eax, 2
push eax
mov eax, dword [esp + 0x10]
push dword [esi + 0x10]
mov ecx, dword [eax + 0xc]
mov eax, dword [edi + 0x10]
lea eax, [eax + ecx*4]
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esi]
add esp, 0xc
mov esi, dword [esp + 0x30]
mov eax, ecx
and eax, 0xf0000000
shl esi, 2
cmp eax, 0x10000000
jne 0x1019b575
push esi
lea eax, [esp + 0x70]
push eax
push dword [edi + 8]
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [eax]
and ecx, 0xf0000000
cmp ecx, 0x20000000
jne 0x1019b5bd
cmp dword [esp + 0x14], 0
lea eax, [esp + 0x6c]
je 0x1019b595
lea eax, [esp + 0x9c]
push esi
push eax
push dword [edi + 8]
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x7c]
cmp dword [esp + 0x14], 0
je 0x1019b5b4
lea eax, [esp + 0x8c]
push esi
push eax
mov eax, dword [edi + 8]
add eax, esi
jmp 0x1019b5fd
cmp ecx, 0x30000000
jne 0x1019b606
push esi
lea eax, [esp + 0x70]
push eax
push dword [edi + 8]
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x7c]
push esi
push eax
mov eax, dword [edi + 8]
add eax, esi
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0xb8]
add esp, 0xc
push esi
push eax
mov eax, dword [edi + 8]
lea eax, [eax + ecx*8]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x4c]
xor edx, edx
push 1
push dword [esp + 0x34]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
and ecx, 0xfffff
div ecx
mov ecx, ebx
mov dword [esp + 0x44], eax
lea eax, [esp + 0xc4]
push eax
push dword [edi + 0x10]
call fcn.101a0891
xor esi, esi
cmp dword [esp + 0x3c], esi
jbe 0x1019b666
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0xbc]
push 0
push dword [esp + 0x34]
imul ecx, esi
push eax
mov eax, dword [edi + 8]
lea eax, [eax + ecx*4]
mov ecx, ebx
push eax
call fcn.101a0891
inc esi
cmp esi, dword [esp + 0x3c]
jb 0x1019b63d
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x1019b674
push ecx
call fcn.10146607
mov eax, dword [ebx + 0x18]
mov ecx, dword [esp + 0x18]
mov dword [eax + ecx*4], edi
xor ecx, ecx
mov eax, dword [esp + 0x4c]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], ecx
mov edi, dword [ebx + 0xc]
mov eax, dword [esp + 0x40]
cmp edi, eax
jbe 0x1019b721
sub edi, eax
push 4
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.1010328d
mov dword [esp + 0x5c], eax
test eax, eax
je 0x1019b75a
mov ecx, dword [ebx + 0x18]
mov esi, edi
mov edx, dword [esp + 0x40]
shl esi, 2
push esi
lea ecx, [ecx + edx*4]
push ecx
push eax
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [esp + 0x40]
mov ecx, dword [ebx + 0x18]
sub eax, edx
shl eax, 2
push eax
mov eax, edx
shl eax, 2
add eax, ecx
push eax
lea eax, [edi + edx]
lea eax, [ecx + eax*4]
push eax
call sub.msvcrt.dll_memmove
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [ebx + 0x18]
shl ecx, 2
add eax, ecx
push esi
mov esi, dword [esp + 0x60]
push esi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.PhotoBase.dll_void___cdecl_BasePrivate::Delete_void__]
pop ecx
mov ecx, ebx
call fcn.101a0abe
mov esi, dword [esp + 0x34]
mov dword [esp + 0x60], 1
dec esi
mov edx, dword [ebx + 0xc]
inc esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x40], edx
cmp esi, edx
jb 0x1019ad08
xor eax, eax
cmp dword [esp + 0x60], eax
sete al
mov dword [esp + 0x2c], eax
mov esi, eax
jmp 0x1019b75f
mov esi, 0x8007000e
push dword [esp + 0x64]
call dword [sym.imp.PhotoBase.dll_void___cdecl_BasePrivate::Delete_void__]
pop ecx
mov eax, esi
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101b6170
mov esp, ebp
pop ebp
ret