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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov eax, dword [0x101d32d0]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x58], ebx
test byte [ebx + 0xcc], 4
je 0x1019e279
xor eax, eax
inc eax
jmp 0x1019f32a
and dword [esp + 0x6c], 0
lea edi, [ebx + 0x10]
xor ecx, ecx
mov dword [esp + 0x3c], edi
cmp dword [ebx + 4], ecx
jbe 0x1019e29d
mov eax, dword [edi]
mov eax, dword [eax + ecx*4]
and dword [eax + 0x10], 0
inc ecx
cmp ecx, dword [ebx + 4]
jb 0x1019e28c
jmp 0x1019e2a1
mov dword [esp + 0x3c], edi
xor ecx, ecx
cmp dword [ebx + 8], ecx
jbe 0x1019e2da
mov eax, dword [ebx + 0x14]
mov esi, dword [eax + ecx*4]
mov edx, dword [esi + 4]
cmp dword [ebx + 0x74], edx
je 0x1019e2d4
mov eax, dword [edi]
mov edx, dword [eax + edx*4]
mov eax, dword [edx + 4]
and eax, 0x402
cmp eax, 2
jne 0x1019e2d4
mov eax, dword [esi + 0xc]
inc eax
cmp dword [edx + 0x10], eax
jae 0x1019e2d4
mov dword [edx + 0x10], eax
inc ecx
cmp ecx, dword [ebx + 8]
jb 0x1019e2a8
mov ecx, dword [ebx + 4]
xor esi, esi
test ecx, ecx
je 0x1019e2f8
mov edx, dword [edi]
push 4
pop ebx
mov eax, dword [edx]
add edx, ebx
add esi, dword [eax + 0x10]
sub ecx, 1
jne 0x1019e2e8
mov ebx, dword [esp + 0x58]
xor ecx, ecx
mov eax, esi
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.101055aa
mov dword [esp + 0x70], eax
test eax, eax
je 0x1019f318
mov ecx, esi
shl ecx, 2
push ecx
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
xor esi, esi
add esp, 0xc
xor edi, edi
cmp dword [ebx + 4], esi
jbe 0x1019e361
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
mov edx, dword [ecx + esi*4]
mov eax, dword [esp + 0x70]
mov ecx, dword [edx + 0x10]
neg ecx
lea eax, [eax + edi*4]
sbb ecx, ecx
and ecx, eax
mov eax, dword [esp + 0x3c]
mov dword [edx + 0x1c], ecx
mov ecx, dword [eax]
mov eax, dword [ecx + esi*4]
add edi, dword [eax + 0x10]
inc esi
cmp esi, dword [ebx + 4]
jb 0x1019e339
xor ecx, ecx
cmp dword [ebx + 8], ecx
jbe 0x1019e39b
mov eax, dword [ebx + 0x14]
mov esi, dword [eax + ecx*4]
mov edx, dword [esi + 4]
cmp dword [ebx + 0x74], edx
je 0x1019e395
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
mov eax, dword [eax + edx*4]
mov edx, dword [eax + 0x1c]
test edx, edx
je 0x1019e395
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
inc eax
cmp dword [edx + edi*4], eax
jae 0x1019e395
mov dword [edx + edi*4], eax
inc ecx
cmp ecx, dword [ebx + 8]
jb 0x1019e368
xor edx, edx
mov dword [esp + 0x1c], edx
cmp dword [ebx + 0xc], edx
jbe 0x1019e416
mov eax, dword [ebx + 0x18]
mov edi, dword [eax + edx*4]
mov ecx, dword [edi]
mov eax, ecx
and eax, 0xf0000000
cmp eax, 0x60000000
je 0x1019e3ca
and ecx, 0xfff00000
cmp ecx, 0x11000000
jne 0x1019e40c
xor esi, esi
cmp dword [edi + 4], esi
jbe 0x1019e40c
mov edx, dword [esp + 0x3c]
mov eax, dword [edi + 8]
mov ecx, dword [eax + esi*4]
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x5c], eax
mov ecx, dword [eax + 4]
mov eax, dword [edx]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x1019e402
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0xc]
mov dword [ecx + eax*4], 4
inc esi
cmp esi, dword [edi + 4]
jb 0x1019e3d5
mov edx, dword [esp + 0x1c]
inc edx
mov dword [esp + 0x1c], edx
cmp edx, dword [ebx + 0xc]
jb 0x1019e3a6
test byte [ebx + 0x6c], 6
jne 0x1019e7eb
mov ecx, ebx
call fcn.101a47fe
xor esi, esi
mov dword [esp + 0x30], esi
cmp dword [ebx + 0xc], esi
jbe 0x1019e7eb
mov edx, dword [ebx + 0x18]
mov eax, dword [edx + esi*4]
mov dword [esp + 0x2c], eax
cmp dword [eax], 0x20400001
jne 0x1019e7dd
mov edi, dword [eax + 8]
mov ecx, dword [ebx + 0x14]
mov ebx, dword [esp + 0x3c]
mov eax, dword [edi]
mov esi, dword [ecx + eax*4]
mov dword [esp + 0x5c], esi
mov eax, dword [esi + 4]
mov esi, dword [ebx]
mov ebx, dword [esp + 0x58]
mov eax, dword [esi + eax*4]
mov esi, dword [esp + 0x30]
test byte [eax + 4], 2
je 0x1019e7dd
mov eax, dword [edi + 4]
mov edi, dword [esp + 0x3c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [edi]
mov dword [esp + 0x50], eax
mov eax, dword [eax + 4]
mov eax, dword [ecx + eax*4]
test byte [eax + 4], 2
je 0x1019e7dd
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x48]
mov edi, dword [edx + eax*4]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x38], edi
mov eax, dword [eax + 0x48]
mov edx, dword [edx + eax*4]
mov eax, dword [edi]
mov dword [esp + 0x34], edx
cmp eax, 0x20500001
je 0x1019e4ce
and eax, 0xfff00000
cmp eax, 0x50000000
jne 0x1019e7dd
mov eax, dword [edx]
cmp eax, 0x20500001
je 0x1019e4e7
and eax, 0xfff00000
cmp eax, 0x50000000
jne 0x1019e7dd
mov ecx, dword [edx + 4]
mov eax, dword [edi + 4]
shr eax, 1
shr ecx, 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ecx
add ecx, eax
mov eax, dword [ebx + 0x6c]
not eax
and eax, 0x20
or eax, 0x40
shr eax, 5
cmp ecx, eax
jb 0x1019e7dd
push 4
pop eax
cmp ecx, eax
ja 0x1019e7dd
mov eax, dword [edi + 0x10]
mov ecx, dword [ebx + 0x14]
mov eax, dword [eax]
mov eax, dword [ecx + eax*4]
cmp esi, dword [eax + 0x54]
jne 0x1019e7dd
cmp esi, dword [eax + 0x58]
jne 0x1019e7dd
mov eax, dword [edx + 0x10]
mov eax, dword [eax]
mov eax, dword [ecx + eax*4]
cmp esi, dword [eax + 0x54]
jne 0x1019e7dd
cmp esi, dword [eax + 0x58]
jne 0x1019e7dd
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
shl edi, 2
push edi
push dword [eax + 8]
lea eax, [esp + 0x94]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
shl eax, 2
push eax
mov eax, dword [esp + 0x38]
push dword [eax + 8]
lea eax, [esp + 0x94]
add eax, edi
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov eax, dword [esp + 0x44]
add esp, 0xc
mov eax, dword [eax + 8]
add eax, edi
push edi
push eax
lea eax, [esp + 0xa4]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov eax, dword [esp + 0x40]
add esp, 0xc
mov ecx, dword [esp + 0x14]
shl ecx, 2
mov eax, dword [eax + 8]
add eax, ecx
push ecx
push eax
lea eax, [esp + 0xa4]
add eax, edi
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
xor eax, eax
mov ecx, ebx
push 0xffffffffffffffff
push eax
push dword [esp + 0x34]
push eax
push eax
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x38]
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.101a15cf
test eax, eax
je 0x1019e62a
push 0xffffffffffffffff
xor eax, eax
mov ecx, ebx
push eax
push dword [esp + 0x34]
push eax
push eax
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x38]
push eax
lea eax, [esp + 0xb4]
push eax
call fcn.101a15cf
test eax, eax
je 0x1019e62a
and dword [esp + 0x1c], 0
jmp 0x1019e6f8
mov eax, dword [esp + 0x38]
push edi
push dword [eax + 8]
lea eax, [esp + 0x84]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov eax, dword [esp + 0x40]
add esp, 0xc
mov ecx, dword [esp + 0x14]
shl ecx, 2
mov eax, dword [eax + 8]
add eax, ecx
push ecx
push eax
lea eax, [esp + 0x84]
add eax, edi
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov eax, dword [esp + 0x44]
add esp, 0xc
mov eax, dword [eax + 8]
add eax, edi
push edi
push eax
lea eax, [esp + 0xb4]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
shl eax, 2
push eax
mov eax, dword [esp + 0x38]
push dword [eax + 8]
lea eax, [esp + 0xb4]
add eax, edi
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov edi, dword [esp + 0x20]
add esp, 0xc
add edi, dword [esp + 0x24]
xor eax, eax
mov ecx, ebx
push 0xffffffffffffffff
push eax
push dword [esp + 0x34]
push eax
push eax
push edi
lea eax, [esp + 0x94]
push eax
call fcn.101a15cf
test eax, eax
je 0x1019e7dd
push 0xffffffffffffffff
xor eax, eax
mov ecx, ebx
push eax
push dword [esp + 0x34]
push eax
push eax
push edi
lea eax, [esp + 0xc4]
push eax
call fcn.101a15cf
test eax, eax
je 0x1019e7dd
mov dword [esp + 0x1c], 1
call fcn.1018fc7f
test eax, eax
je 0x1019f318
mov ecx, eax
call fcn.1018f426
mov edi, eax
test edi, edi
je 0x1019f318
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x24]
push 0
push 1
lea ecx, [eax + eax]
and eax, 0xfffff
push ecx
or eax, 0x50000000
mov ecx, edi
push eax
call fcn.1018f462
mov edx, eax
mov dword [esp + 0x18], edx
test edx, edx
js 0x1019e9ad
mov edx, dword [esp + 0x2c]
mov ecx, edi
push edx
call fcn.1018f75e
mov esi, eax
test esi, esi
js 0x1019e9b1
cmp dword [esp + 0x1c], 0
mov eax, dword [edx + 0x10]
mov ecx, dword [edi + 0x10]
mov eax, dword [eax]
mov dword [ecx], eax
lea eax, [esp + 0x8c]
je 0x1019e778
lea eax, [esp + 0x7c]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x4c], eax
lea esi, [esi + ecx]
shl esi, 2
push esi
push eax
push dword [edi + 8]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x9c]
cmp dword [esp + 0x1c], 0
je 0x1019e7ac
lea eax, [esp + 0xac]
push esi
push eax
mov eax, dword [edi + 8]
add eax, esi
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov eax, dword [ebx + 0x18]
add esp, 8
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov dword [eax + esi*4], edi
call fcn.10149a7e
mov eax, dword [esp + 0x38]
and dword [eax], 0
mov eax, dword [esp + 0x34]
and dword [eax], 0
inc esi
mov dword [esp + 0x30], esi
cmp esi, dword [ebx + 0xc]
jb 0x1019e436
mov ecx, ebx
call fcn.101a47fe
mov edx, dword [ebx + 0xc]
xor edi, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x4c], edx
test edx, edx
je 0x1019f2f9
mov eax, dword [ebx + 0x18]
mov esi, dword [eax + edi*4]
mov dword [esp + 0x34], esi
mov ecx, dword [esi]
mov eax, ecx
and eax, 0xf0000000
sub eax, 0x10000000
cmp eax, 0x30000000
ja 0x1019f2e5
and ecx, 0xfff00000
cmp ecx, 0x10000000
je 0x1019e842
test byte [ebx + 0x6c], 6
jne 0x1019f2e5
mov ecx, esi
call fcn.1018fa48
test eax, eax
jne 0x1019f2e5
mov edi, dword [esi + 0x10]
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x1c], edi
mov eax, dword [edi]
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x74], ecx
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x54], eax
test eax, eax
je 0x1019f2e1
mov esi, dword [esi + 4]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x48], esi
test esi, esi
je 0x1019e8f5
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x18]
mov edx, dword [eax + 8]
mov eax, dword [edx]
cmp eax, 0xffffffff
je 0x1019e8df
mov esi, dword [esp + 0x38]
mov ecx, dword [ebx + eax*4]
mov eax, dword [ecx + 4]
mov eax, dword [edi + eax*4]
test byte [eax + 4], 2
je 0x1019e8cf
mov eax, dword [ecx + 0x48]
inc eax
cmp esi, eax
jae 0x1019e8cf
mov esi, eax
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
jne 0x1019e8b6
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x48]
push 4
pop eax
add edx, eax
sub esi, 1
mov dword [esp + 0x48], esi
jne 0x1019e8ab
mov ebx, dword [esp + 0x58]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 0xc]
test edx, edx
je 0x1019e968
mov ebx, dword [esp + 0x44]
mov eax, dword [edi]
mov ecx, dword [esp + 0x30]
mov eax, dword [ebx + eax*4]
cmp ecx, dword [eax + 0x54]
jbe 0x1019e919
mov ecx, dword [eax + 0x54]
mov dword [esp + 0x30], ecx
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x1019e952
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x38]
mov ecx, dword [ebx + eax*4]
mov eax, dword [ecx + 4]
mov eax, dword [esi + eax*4]
test byte [eax + 4], 2
je 0x1019e942
mov eax, dword [ecx + 0x48]
inc eax
cmp edi, eax
jae 0x1019e942
mov edi, eax
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
jne 0x1019e929
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x1c]
push 4
pop eax
add edi, eax
mov dword [esp + 0x1c], edi
sub edx, 1
jne 0x1019e904
mov ebx, dword [esp + 0x58]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov edx, eax
mov edi, dword [esp + 0x28]
mov dword [esp + 0x48], edx
cmp eax, dword [esp + 0x30]
jae 0x1019f2e5
cmp edi, edx
je 0x1019ef71
mov eax, dword [ebx + 0x18]
mov esi, edx
shl esi, 2
mov dword [esp + 0x5c], esi
mov eax, dword [esi + eax]
mov dword [esp + 0x68], eax
cmp edi, edx
jae 0x1019e9be
mov edi, eax
mov esi, ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x14], esi
jmp 0x1019e9ca
mov esi, dword [esp + 0x18]
push ecx
mov ecx, edi
call fcn.10149a7e
jmp 0x1019f31d
mov edi, ecx
mov dword [esp + 0x2c], ecx
mov esi, eax
mov dword [esp + 0x14], eax
mov eax, dword [edi]
mov edx, 0xfff00000
mov ecx, eax
mov dword [esp + 0x60], eax
mov eax, dword [esi]
and ecx, edx
and eax, edx
mov dword [esp + 0x24], ecx
cmp ecx, eax
jne 0x1019ef6d
mov eax, dword [esi + 0x10]
mov edx, dword [ebx + 0x14]
mov eax, dword [eax]
mov ecx, dword [edx + eax*4]
lea eax, [edi + 0x10]
mov dword [esp + 0x78], eax
mov eax, dword [eax]
mov eax, dword [eax]
mov edx, dword [edx + eax*4]
mov eax, dword [edx + 4]
mov dword [esp + 0x18], eax
cmp eax, dword [ecx + 4]
jne 0x1019ef6d
mov eax, dword [edx + 8]
cmp eax, dword [ecx + 8]
jne 0x1019ef6d
mov eax, dword [edx + 0x14]
cmp eax, dword [ecx + 0x14]
jne 0x1019ef6d
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jne 0x1019ef6d
mov eax, dword [esi + 4]
add eax, dword [edi + 4]
mov dword [esp + 0x64], eax
lea eax, [edi + 0xc]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
push 4
pop esi
mov eax, dword [eax]
mov dword [esp + 0x20], eax
add eax, dword [esp + 0x10]
cmp eax, esi
mov esi, dword [esp + 0x14]
ja 0x1019ef6d
mov edx, dword [edx + 0xc]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x44], edx
mov dword [esp + 0x1c], ecx
cmp edx, ecx
je 0x1019eabb
test byte [ebx + 0x6c], 6
jne 0x1019ef6d
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x18]
mov eax, dword [eax]
mov eax, dword [eax + edi*4]
mov edi, dword [esp + 0x2c]
test byte [eax + 4], 0x20
jne 0x1019ef6d
mov eax, dword [esp + 0x54]
push 4
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x58]
add eax, dword [ecx + edx*4]
pop ecx
cmp eax, ecx
ja 0x1019ef6d
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x40], eax
cmp eax, ecx
jb 0x1019eacf
mov dword [esp + 0x40], ecx
and dword [esp + 0x18], 0
mov ecx, 0x10000000
mov eax, dword [esp + 0x24]
cmp eax, ecx
je 0x1019eebf
cmp eax, 0x10100000
je 0x1019eebf
mov eax, dword [esp + 0x60]
and eax, 0xf0000000
cmp eax, ecx
jne 0x1019eb83
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
shl esi, 2
push esi
push dword [eax + 8]
lea eax, [esp + 0x84]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov eax, dword [esp + 0x2c]
add esp, 0xc
shl eax, 2
push eax
push dword [edi + 8]
lea eax, [esp + 0x84]
add eax, esi
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov eax, dword [esp + 0x2c]
add esp, 0xc
add eax, dword [esp + 0x10]
xor esi, esi
mov ecx, ebx
push dword [esp + 0x40]
push esi
push dword [esp + 0x1c]
push esi
push esi
push eax
lea eax, [esp + 0x94]
push eax
call fcn.101a15cf
test eax, eax
je 0x1019eb6e
mov dword [esp + 0x18], 1
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1019ef4a
jmp 0x1019ef2d
cmp eax, 0x20000000
jne 0x1019ed72
mov eax, dword [esp + 0x10]
shl eax, 2
push eax
push dword [esi + 8]
lea eax, [esp + 0x84]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x88]
add esp, 0xc
shl eax, 2
push eax
mov eax, dword [esp + 0x14]
push dword [edi + 8]
shl eax, 2
add eax, ecx
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [esi + 8]
shl ecx, 2
add eax, ecx
push ecx
push eax
lea eax, [esp + 0x94]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov eax, dword [edi + 8]
shl ecx, 2
add eax, ecx
push ecx
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x94]
shl eax, 2
add eax, ecx
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
xor eax, eax
mov ecx, ebx
push dword [esp + 0x40]
push eax
push esi
push eax
push eax
mov eax, dword [esp + 0x34]
add eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0x94]
push eax
call fcn.101a15cf
push dword [esp + 0x40]
mov esi, eax
mov ecx, ebx
xor eax, eax
push eax
push dword [esp + 0x1c]
push eax
push eax
mov eax, dword [esp + 0x34]
add eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.101a15cf
test esi, esi
je 0x1019ec67
test eax, eax
jne 0x1019ef28
and dword [esp + 0x24], 0
mov ecx, edi
call fcn.1018f891
test eax, eax
je 0x1019eb72
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xac]
mov esi, dword [esp + 0x14]
shl ecx, 2
push ecx
push dword [esi + 8]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov eax, dword [edi + 8]
shl ecx, 2
add eax, ecx
push ecx
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0xb4]
shl eax, 2
add eax, ecx
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [esi + 8]
shl ecx, 2
add eax, ecx
push ecx
push eax
lea eax, [esp + 0xa4]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0xa8]
add esp, 0xc
shl eax, 2
push eax
mov eax, dword [esp + 0x14]
push dword [edi + 8]
shl eax, 2
add eax, ecx
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
xor eax, eax
mov ecx, ebx
push dword [esp + 0x40]
push eax
push esi
push eax
push eax
mov eax, dword [esp + 0x34]
add eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.101a15cf
push dword [esp + 0x40]
mov esi, eax
mov ecx, ebx
xor eax, eax
push eax
push dword [esp + 0x1c]
push eax
push eax
mov eax, dword [esp + 0x34]
add eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0xb4]
push eax
call fcn.101a15cf
and dword [esp + 0x24], 0
test esi, esi
je 0x1019eb72
and dword [esp + 0x24], 0
test eax, eax
je 0x1019eb72
xor eax, eax
inc eax
mov dword [esp + 0x24], eax
jmp 0x1019eb76
cmp eax, 0x30000000
jne 0x1019ef4a
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x7c]
shl edi, 2
push edi
push dword [esi + 8]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov esi, dword [esp + 0x2c]
add esp, 0xc
mov eax, dword [esp + 0x2c]
shl esi, 2
push esi
push dword [eax + 8]
lea eax, [esp + 0x84]
add eax, edi
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [eax + 8]
add eax, edi
push edi
push eax
lea eax, [esp + 0x94]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov eax, dword [esp + 0x38]
add esp, 0xc
mov eax, dword [eax + 8]
add eax, esi
push esi
push eax
lea eax, [esp + 0x94]
add eax, edi
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 8]
push edi
lea eax, [eax + ecx*8]
push eax
lea eax, [esp + 0xc4]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov eax, dword [esp + 0x38]
add esp, 0xc
mov eax, dword [eax + 8]
push esi
mov esi, dword [esp + 0x24]
lea eax, [eax + esi*8]
push eax
lea eax, [esp + 0xc4]
add eax, edi
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov edi, dword [esp + 0x20]
add esp, 0xc
xor eax, eax
mov ecx, ebx
push dword [esp + 0x40]
push eax
push edi
push eax
push eax
mov eax, dword [esp + 0x24]
add eax, esi
push eax
lea eax, [esp + 0x94]
push eax
call fcn.101a15cf
push dword [esp + 0x40]
mov esi, eax
xor eax, eax
push eax
push edi
push eax
push eax
mov eax, dword [esp + 0x34]
add eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0xa4]
mov ecx, ebx
push eax
call fcn.101a15cf
push dword [esp + 0x40]
mov dword [esp + 0x64], eax
mov ecx, ebx
xor eax, eax
push eax
push edi
push eax
push eax
mov eax, dword [esp + 0x34]
add eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0xd4]
push eax
call fcn.101a15cf
test esi, esi
je 0x1019ef4a
cmp dword [esp + 0x60], 0
je 0x1019ef4a
test eax, eax
je 0x1019ef4a
mov edi, dword [esp + 0x2c]
jmp 0x1019ef28
mov eax, dword [edi + 8]
mov edx, dword [ebx + 0x14]
mov eax, dword [eax]
mov ecx, dword [edx + eax*4]
mov eax, dword [esi + 8]
mov dword [esp + 0x60], eax
mov eax, dword [eax]
mov edx, dword [edx + eax*4]
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
jne 0x1019ef4a
mov eax, dword [ecx + 8]
cmp eax, dword [edx + 8]
jne 0x1019ef4a
mov eax, dword [ecx + 0xc]
cmp eax, dword [edx + 0xc]
jne 0x1019ef4a
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x7c]
shl esi, 2
push esi
push dword [esp + 0x64]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov eax, dword [esp + 0x2c]
add esp, 0xc
shl eax, 2
push eax
push dword [edi + 8]
lea eax, [esp + 0x84]
add eax, esi
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov dword [esp + 0x2c], edi
and dword [esp + 0x24], 0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
cmp ecx, eax
je 0x1019ef91
mov edx, dword [esp + 0x54]
push 4
mov eax, dword [edx + eax*4]
add eax, dword [edx + ecx*4]
pop ecx
cmp eax, ecx
jbe 0x1019ef91
mov edx, dword [esp + 0x4c]
mov eax, dword [ebx + 0xc]
cmp eax, edx
jbe 0x1019ef6d
lea ecx, [eax - 1]
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0xc], ecx
mov ecx, dword [eax + ecx*4]
test ecx, ecx
je 0x1019ef4e
push ecx
call fcn.10149a7e
jmp 0x1019ef4e
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
inc ecx
mov dword [esp + 0x48], ecx
cmp ecx, dword [esp + 0x30]
jae 0x1019f2e5
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x48]
jmp 0x1019e980
call fcn.1018fc7f
test eax, eax
je 0x1019f318
mov ecx, eax
call fcn.1018f426
mov esi, eax
mov dword [esp + 0x30], esi
test esi, esi
je 0x1019f318
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x10]
mov ecx, dword [edi]
push 0
xor ecx, eax
push eax
push dword [esp + 0x6c]
and ecx, 0xfffff
xor ecx, dword [edi]
push ecx
mov ecx, esi
call fcn.1018f462
mov edx, eax
mov dword [esp + 0x18], edx
test edx, edx
js 0x1019f30a
push edi
mov ecx, esi
call fcn.1018f75e
mov esi, eax
test esi, esi
js 0x1019f30e
mov eax, dword [esp + 0x44]
mov esi, ecx
mov ecx, dword [esp + 0x1c]
mov edx, esi
mov dword [esp + 0x18], edx
cmp eax, ecx
je 0x1019f078
and dword [esp + 0x64], 0
cmp dword [ebx + 8], 0
mov dword [esp + 0x18], edx
jbe 0x1019f060
mov dword [esp + 0x18], esi
mov edx, ecx
mov esi, dword [esp + 0x64]
mov edi, eax
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + esi*4]
mov eax, dword [esp + 0x74]
cmp eax, dword [ecx + 4]
jne 0x1019f046
cmp edi, dword [ecx + 0xc]
jne 0x1019f046
mov eax, dword [esp + 0x54]
mov dword [ecx + 0xc], edx
mov eax, dword [eax + edx*4]
add dword [ecx + 0x10], eax
inc esi
cmp esi, dword [ebx + 8]
jb 0x1019f025
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x54]
mov eax, dword [ebx + eax*4]
add dword [ebx + ecx*4], eax
mov ecx, ebx
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x58]
and dword [ecx + eax*4], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0xc]
shl eax, 2
push eax
push dword [ecx + 0x10]
push dword [edx + 0x10]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov eax, dword [esp + 0x5c]
add esp, 0xc
mov eax, dword [eax]
shl eax, 2
push eax
mov eax, dword [esp + 0x7c]
push dword [eax]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x10]
lea eax, [eax + ecx*4]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov eax, dword [edi]
and eax, 0xf0000000
lea ecx, [ecx + edx]
shl ecx, 2
mov dword [esp + 0x1c], ecx
cmp eax, 0x10000000
jne 0x1019f0f4
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x7c]
push ecx
add esi, 8
push eax
push dword [esi]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov ecx, dword [esp + 0x28]
add esp, 0xc
jmp 0x1019f0f7
add esi, 8
mov eax, dword [edi]
and eax, 0xf0000000
cmp eax, 0x20000000
jne 0x1019f142
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x7c]
test edi, edi
je 0x1019f118
lea eax, [esp + 0xac]
push ecx
push eax
push dword [esi]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x8c]
test edi, edi
je 0x1019f136
lea eax, [esp + 0x9c]
mov edi, dword [esp + 0x1c]
push edi
push eax
mov eax, dword [esi]
add eax, edi
jmp 0x1019f18c
cmp eax, 0x30000000
jne 0x1019f195
push ecx
lea eax, [esp + 0x80]
push eax
push dword [esi]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x98]
add esp, 0xc
push edi
push eax
mov eax, dword [esi]
add eax, edi
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0xc8]
add esp, 0xc
add ecx, dword [esp + 0x10]
push edi
push eax
mov eax, dword [esi]
lea eax, [eax + ecx*8]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x34]
xor edx, edx
mov edi, dword [esp + 0x18]
push 1
mov ecx, dword [eax]
mov eax, dword [eax + 4]
and ecx, 0xfffff
div ecx
mov ecx, ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0xd4]
push eax
push dword [edi + 0x10]
call fcn.101a45c8
xor eax, eax
mov dword [esp + 0x50], eax
cmp dword [esp + 0x1c], eax
jbe 0x1019f212
mov ecx, dword [esp + 0x20]
add ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x58]
push 0
push ecx
lea ecx, [esp + 0xd4]
push ecx
mov ecx, dword [edi + 0xc]
imul ecx, eax
mov eax, dword [esi]
lea eax, [eax + ecx*4]
mov ecx, ebx
push eax
call fcn.101a45c8
mov eax, dword [esp + 0x50]
inc eax
mov dword [esp + 0x50], eax
cmp eax, dword [esp + 0x1c]
jb 0x1019f1d9
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x1019f220
push ecx
call fcn.10149a7e
mov eax, dword [ebx + 0x18]
mov ecx, dword [esp + 0x5c]
mov dword [ecx + eax], edi
mov eax, dword [esp + 0x34]
and dword [eax], 0
and dword [eax + 4], 0
and dword [eax + 0xc], 0
mov edi, dword [ebx + 0xc]
mov eax, dword [esp + 0x4c]
cmp edi, eax
jbe 0x1019f2cb
sub edi, eax
xor ecx, ecx
push 4
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.101055aa
mov dword [esp + 0x68], eax
test eax, eax
je 0x1019f318
mov ecx, dword [ebx + 0x18]
mov esi, edi
mov edx, dword [esp + 0x4c]
shl esi, 2
push esi
lea ecx, [ecx + edx*4]
push ecx
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov edx, dword [esp + 0x54]
add esp, 0xc
mov eax, dword [esp + 0x4c]
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.api_ms_win_crt_private_l1_1_0.dll_memmove
mov eax, dword [ebx + 0x18]
add esp, 0xc
add eax, dword [esp + 0x5c]
push esi
mov esi, dword [esp + 0x6c]
push esi
push eax
call sub.api_ms_win_crt_private_l1_1_0.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.101a47fe
mov edi, dword [esp + 0x38]
mov dword [esp + 0x6c], 1
dec edi
jmp 0x1019f2e5
mov edi, dword [esp + 0x28]
mov edx, dword [ebx + 0xc]
inc edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x4c], edx
cmp edi, edx
jb 0x1019e807
xor eax, eax
cmp dword [esp + 0x6c], eax
sete al
mov dword [esp + 0x18], eax
mov esi, eax
jmp 0x1019f31d
mov esi, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x34]
jmp 0x1019e9b4
mov esi, 0x8007000e
push dword [esp + 0x70]
call dword [sym.imp.PhotoBase.dll_void___cdecl_BasePrivate::Delete_void__]
pop ecx
mov eax, esi
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101b9e50
mov esp, ebp
pop ebp
ret