Function at 0x1018f1c8
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 [0x101bf2c4]
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 0x1018f1fe
xor eax, eax
inc eax
jmp 0x10190205
mov eax, dword [ebx + 4]
xor edi, edi
mov dword [esp + 0x5c], edi
mov ecx, edi
mov edx, eax
test eax, eax
je 0x1018f222
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 0x1018f20f
mov ecx, edi
cmp dword [ebx + 8], edi
jbe 0x1018f261
mov eax, dword [ebx + 0x14]
mov esi, dword [eax + ecx*4]
mov edx, dword [esi + 4]
cmp dword [ebx + 0x74], edx
je 0x1018f256
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + edx*4]
mov eax, dword [edx + 4]
and eax, 0x402
cmp eax, 2
jne 0x1018f256
mov eax, dword [esi + 0xc]
inc eax
cmp dword [edx + 0x10], eax
jae 0x1018f256
mov dword [edx + 0x10], eax
inc ecx
cmp ecx, dword [ebx + 8]
jb 0x1018f229
mov eax, dword [ebx + 4]
mov edx, eax
mov esi, edi
test eax, eax
je 0x1018f27d
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 0x1018f26d
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.100fa56f
mov dword [esp + 0x60], eax
test eax, eax
je 0x101901f3
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 0x1018f2dd
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx + esi*4]
mov eax, dword [esp + 0x60]
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 0x1018f2b8
xor ecx, ecx
cmp dword [ebx + 8], ecx
jbe 0x1018f314
mov eax, dword [ebx + 0x14]
mov esi, dword [eax + ecx*4]
mov edx, dword [esi + 4]
cmp dword [ebx + 0x74], edx
je 0x1018f30e
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + edx*4]
mov edx, dword [eax + 0x1c]
test edx, edx
je 0x1018f30e
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
inc eax
cmp dword [edx + edi*4], eax
jae 0x1018f30e
mov dword [edx + edi*4], eax
inc ecx
cmp ecx, dword [ebx + 8]
jb 0x1018f2e4
xor edx, edx
cmp dword [ebx + 0xc], edx
jbe 0x1018f380
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 0x1018f33f
and ecx, 0xfff00000
cmp ecx, 0x11000000
jne 0x1018f37a
xor edi, edi
cmp dword [esi + 4], edi
jbe 0x1018f37a
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 + 0x44], 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 0x1018f374
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0xc]
mov dword [ecx + eax*4], 4
inc edi
cmp edi, dword [esi + 4]
jb 0x1018f346
inc edx
cmp edx, dword [ebx + 0xc]
jb 0x1018f31b
test byte [ebx + 0x6c], 6
jne 0x1018f744
mov ecx, ebx
call fcn.10195520
xor esi, esi
mov dword [esp + 0x3c], esi
cmp dword [ebx + 0xc], esi
jbe 0x1018f744
mov edx, dword [ebx + 0x18]
mov eax, dword [edx + esi*4]
mov dword [esp + 0x18], eax
cmp dword [eax], 0x20400001
jne 0x1018f736
mov edi, dword [eax + 8]
mov ecx, dword [ebx + 0x14]
mov eax, dword [edi]
mov esi, dword [ecx + eax*4]
mov dword [esp + 0x44], esi
mov eax, dword [esi + 4]
mov esi, dword [ebx + 0x10]
mov eax, dword [esi + eax*4]
mov esi, dword [esp + 0x3c]
test byte [eax + 4], 2
je 0x1018f736
mov eax, dword [edi + 4]
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x4c], eax
mov eax, dword [eax + 4]
mov eax, dword [ecx + eax*4]
test byte [eax + 4], 2
je 0x1018f736
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0x48]
mov edi, dword [edx + eax*4]
mov eax, dword [esp + 0x4c]
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 0x1018f42e
and eax, 0xfff00000
cmp eax, 0x50000000
jne 0x1018f736
mov eax, dword [edx]
cmp eax, 0x20500001
je 0x1018f447
and eax, 0xfff00000
cmp eax, 0x50000000
jne 0x1018f736
mov ecx, dword [edx + 4]
mov eax, dword [edi + 4]
shr eax, 1
shr ecx, 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], ecx
add ecx, eax
mov eax, dword [ebx + 0x6c]
not eax
and eax, 0x20
or eax, 0x40
shr eax, 5
cmp ecx, eax
jb 0x1018f736
push 4
pop eax
cmp ecx, eax
ja 0x1018f736
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 0x1018f736
cmp esi, dword [eax + 0x58]
jne 0x1018f736
mov eax, dword [edx + 0x10]
mov eax, dword [eax]
mov eax, dword [ecx + eax*4]
cmp esi, dword [eax + 0x54]
jne 0x1018f736
cmp esi, dword [eax + 0x58]
jne 0x1018f736
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
shl edi, 2
push edi
push dword [eax + 8]
lea eax, [esp + 0x84]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x1c]
add esp, 0xc
shl eax, 2
push eax
mov eax, dword [esp + 0x38]
push dword [eax + 8]
lea eax, [esp + 0x84]
add eax, edi
push eax
call sub.msvcrt.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 + 0x94]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x40]
add esp, 0xc
mov ecx, dword [esp + 0x10]
shl ecx, 2
mov eax, dword [eax + 8]
add eax, ecx
push ecx
push eax
lea eax, [esp + 0x94]
add eax, edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
mov ecx, ebx
push 0xffffffffffffffff
push eax
push dword [esp + 0x20]
push eax
push eax
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x3c]
push eax
lea eax, [esp + 0x94]
push eax
call fcn.1019249e
test eax, eax
je 0x1018f58a
push 0xffffffffffffffff
xor eax, eax
mov ecx, ebx
push eax
push dword [esp + 0x20]
push eax
push eax
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x3c]
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.1019249e
test eax, eax
je 0x1018f58a
and dword [esp + 0x30], 0
jmp 0x1018f652
mov eax, dword [esp + 0x38]
push edi
push dword [eax + 8]
lea eax, [esp + 0x74]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x40]
add esp, 0xc
mov ecx, dword [esp + 0x10]
shl ecx, 2
mov eax, dword [eax + 8]
add eax, ecx
push ecx
push eax
lea eax, [esp + 0x74]
add eax, edi
push eax
call sub.msvcrt.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.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [esp + 0x34]
shl ecx, 2
push ecx
push dword [eax + 8]
lea eax, [esp + 0xa4]
add eax, edi
push eax
call sub.msvcrt.dll_memcpy
mov edi, dword [esp + 0x1c]
add esp, 0xc
add edi, dword [esp + 0x28]
xor eax, eax
mov ecx, ebx
push 0xffffffffffffffff
push eax
push dword [esp + 0x20]
push eax
push eax
push edi
lea eax, [esp + 0x84]
push eax
call fcn.1019249e
test eax, eax
je 0x1018f736
push 0xffffffffffffffff
xor eax, eax
mov ecx, ebx
push eax
push dword [esp + 0x20]
push eax
push eax
push edi
lea eax, [esp + 0xb4]
push eax
call fcn.1019249e
test eax, eax
je 0x1018f736
mov dword [esp + 0x30], 1
call fcn.10180f96
test eax, eax
je 0x1018f666
mov ecx, eax
call fcn.10180810
mov edi, eax
jmp 0x1018f668
xor edi, edi
test edi, edi
je 0x101901f3
mov ecx, dword [esp + 0x10]
add ecx, dword [esp + 0x28]
push 0
push 1
lea eax, [ecx + ecx]
and ecx, 0xfffff
or ecx, 0x50000000
push eax
push ecx
mov ecx, edi
call fcn.10180846
mov edx, eax
mov dword [esp + 0x2c], edx
test edx, edx
js 0x1018f901
mov edx, dword [esp + 0x18]
mov ecx, edi
push edx
call fcn.10180b36
mov esi, eax
test esi, esi
js 0x1018f905
cmp dword [esp + 0x30], 0
mov eax, dword [edx + 0x10]
mov ecx, dword [edi + 0x10]
mov eax, dword [eax]
mov dword [ecx], eax
lea eax, [esp + 0x7c]
je 0x1018f6d1
lea eax, [esp + 0x6c]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x48], eax
lea esi, [esi + ecx]
shl esi, 2
push esi
push eax
push dword [edi + 8]
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x8c]
cmp dword [esp + 0x30], 0
je 0x1018f705
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 esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
mov dword [eax + esi*4], edi
call fcn.1013c656
mov eax, dword [esp + 0x38]
and dword [eax], 0
mov eax, dword [esp + 0x34]
and dword [eax], 0
inc esi
mov dword [esp + 0x3c], esi
cmp esi, dword [ebx + 0xc]
jb 0x1018f3a0
mov ecx, ebx
call fcn.10195520
mov edx, dword [ebx + 0xc]
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x48], edx
test edx, edx
je 0x101901e2
mov eax, dword [ebx + 0x18]
mov edi, dword [eax + esi*4]
mov dword [esp + 0x34], edi
mov ecx, dword [edi]
mov eax, ecx
and eax, 0xf0000000
sub eax, 0x10000000
cmp eax, 0x30000000
ja 0x101901ce
and ecx, 0xfff00000
cmp ecx, 0x10000000
je 0x1018f79b
test byte [ebx + 0x6c], 6
jne 0x101901ce
mov ecx, edi
call fcn.10180da7
test eax, eax
jne 0x101901ce
mov edi, dword [edi + 0x10]
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x40], edi
mov dword [esp + 0x30], ecx
mov eax, dword [edi]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 4]
mov dword [esp + 0x44], eax
mov edi, dword [esp + 0x44]
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + edi*4]
mov edi, dword [esp + 0x40]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x3c], eax
test eax, eax
je 0x101901ce
mov eax, dword [esp + 0x34]
xor esi, esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x20], edx
mov esi, dword [eax + 4]
mov dword [esp + 0x2c], esi
test esi, esi
je 0x1018f854
mov edx, dword [eax + 8]
mov edi, ecx
mov ebx, dword [ebx + 0x10]
mov eax, dword [edx]
cmp eax, 0xffffffff
je 0x1018f836
mov esi, dword [esp + 0x38]
mov ecx, dword [edi + eax*4]
mov eax, dword [ecx + 4]
mov eax, dword [ebx + eax*4]
test byte [eax + 4], 2
je 0x1018f826
mov eax, dword [ecx + 0x48]
inc eax
cmp esi, eax
jae 0x1018f826
mov esi, eax
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
jne 0x1018f80d
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x2c]
push 4
pop eax
add edx, eax
sub esi, 1
mov dword [esp + 0x2c], esi
jne 0x1018f802
mov ebx, dword [esp + 0x54]
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov edx, dword [eax + 0xc]
test edx, edx
je 0x1018f8c1
mov eax, dword [edi]
mov esi, dword [esp + 0x20]
mov eax, dword [ecx + eax*4]
cmp esi, dword [eax + 0x54]
jbe 0x1018f870
mov esi, dword [eax + 0x54]
mov dword [esp + 0x20], esi
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x1018f8b3
mov esi, dword [ebx + 0x14]
mov ebx, dword [ebx + 0x10]
mov edi, dword [esp + 0x38]
mov ecx, dword [esi + eax*4]
mov eax, dword [ecx + 4]
mov eax, dword [ebx + eax*4]
test byte [eax + 4], 2
je 0x1018f89b
mov eax, dword [ecx + 0x48]
inc eax
cmp edi, eax
jae 0x1018f89b
mov edi, eax
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
jne 0x1018f882
mov ebx, dword [esp + 0x54]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x40]
push 4
pop eax
add edi, eax
mov dword [esp + 0x40], edi
sub edx, 1
jne 0x1018f85b
mov eax, dword [esp + 0x38]
mov edx, eax
mov esi, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x20]
jae 0x101901ce
mov eax, dword [esp + 0x20]
cmp esi, edx
je 0x1018fead
mov eax, dword [ebx + 0x18]
mov ecx, dword [esp + 0x34]
mov edx, dword [eax + edx*4]
mov dword [esp + 0x58], edx
cmp esi, dword [esp + 0x1c]
jae 0x1018f912
mov edi, edx
mov dword [esp + 0x28], edi
jmp 0x1018f918
mov esi, dword [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.1013c656
jmp 0x101901f8
mov edi, ecx
mov dword [esp + 0x28], ecx
jae 0x1018f922
mov esi, ecx
mov dword [esp + 0x10], esi
jmp 0x1018f928
mov esi, edx
mov dword [esp + 0x10], edx
mov eax, dword [edi]
mov edx, 0xfff00000
mov ecx, eax
mov dword [esp + 0x50], eax
mov eax, dword [esi]
and ecx, edx
and eax, edx
mov dword [esp + 0x64], ecx
cmp ecx, eax
jne 0x1018fea1
mov eax, dword [esi + 0x10]
mov edx, dword [ebx + 0x14]
mov eax, dword [eax]
mov ecx, dword [edx + eax*4]
mov eax, dword [edi + 0x10]
mov eax, dword [eax]
mov edx, dword [edx + eax*4]
mov eax, dword [edx + 4]
cmp eax, dword [ecx + 4]
jne 0x1018fea1
mov eax, dword [edx + 8]
cmp eax, dword [ecx + 8]
jne 0x1018fea1
mov eax, dword [edx + 0x14]
cmp eax, dword [ecx + 0x14]
jne 0x1018fea1
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jne 0x1018fea1
mov eax, dword [esi + 4]
add eax, dword [edi + 4]
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0xc]
push 4
mov dword [esp + 0x18], eax
add eax, dword [esp + 0x10]
pop edi
cmp eax, edi
mov edi, dword [esp + 0x28]
ja 0x1018fea1
mov eax, dword [edx + 0xc]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], ecx
cmp eax, ecx
je 0x1018f9fd
test byte [ebx + 0x6c], 6
jne 0x1018fea1
mov eax, dword [ebx + 0x10]
mov edx, dword [edx + 4]
mov eax, dword [eax + edx*4]
test byte [eax + 4], 0x20
jne 0x1018fea1
mov edx, dword [esp + 0x3c]
push 4
mov eax, dword [edx + ecx*4]
mov ecx, dword [esp + 0x44]
add eax, dword [edx + ecx*4]
pop ecx
cmp eax, ecx
ja 0x1018fea1
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
cmp ecx, eax
jb 0x1018fa11
mov dword [esp + 0x18], eax
xor eax, eax
mov ecx, 0x10000000
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x64]
cmp eax, ecx
je 0x1018fde5
cmp eax, 0x10100000
je 0x1018fde5
mov eax, dword [esp + 0x50]
and eax, 0xf0000000
cmp eax, ecx
jne 0x1018faa9
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
shl esi, 2
push esi
push dword [eax + 8]
lea eax, [esp + 0x74]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
shl eax, 2
push eax
push dword [edi + 8]
lea eax, [esp + 0x74]
add eax, esi
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x78]
add ecx, dword [esp + 0x18]
add esp, 0xc
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push 0
push 0
push ecx
push eax
mov ecx, ebx
call fcn.1019249e
test eax, eax
je 0x1018fe4e
xor ecx, ecx
inc ecx
jmp 0x1018fe52
cmp eax, 0x20000000
jne 0x1018fc96
mov eax, dword [esp + 0xc]
shl eax, 2
push eax
push dword [esi + 8]
lea eax, [esp + 0x74]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x78]
add esp, 0xc
shl eax, 2
push eax
mov eax, dword [esp + 0x10]
push dword [edi + 8]
shl eax, 2
add eax, ecx
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [esi + 8]
shl ecx, 2
add eax, ecx
push ecx
push eax
lea eax, [esp + 0x84]
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [edi + 8]
shl ecx, 2
add eax, ecx
push ecx
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x84]
shl eax, 2
add eax, ecx
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, dword [esp + 0xc]
xor eax, eax
push dword [esp + 0x18]
push eax
push esi
push eax
push eax
push ecx
lea eax, [esp + 0x84]
mov ecx, ebx
push eax
call fcn.1019249e
push dword [esp + 0x18]
mov esi, eax
mov ecx, ebx
xor eax, eax
push eax
push dword [esp + 0x18]
push eax
push eax
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x20]
push eax
lea eax, [esp + 0x94]
push eax
call fcn.1019249e
test esi, esi
je 0x1018fb88
test eax, eax
je 0x1018fb88
xor ecx, ecx
inc ecx
jmp 0x1018fb8c
mov ecx, dword [esp + 0x2c]
and dword [esp + 0x30], 0
test ecx, ecx
jne 0x1018fe5b
mov ecx, edi
call fcn.10180c44
test eax, eax
je 0x1018fe80
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
shl eax, 2
push eax
lea eax, [esp + 0xa0]
push dword [esi + 8]
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [edi + 8]
shl ecx, 2
add eax, ecx
push ecx
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xa4]
shl eax, 2
add eax, ecx
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x18]
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.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [esp + 0xc]
shl ecx, 2
shl eax, 2
push ecx
push dword [edi + 8]
lea ecx, [esp + 0x94]
add eax, ecx
push eax
call sub.msvcrt.dll_memcpy
mov edi, dword [esp + 0x24]
add esp, 0xc
xor eax, eax
mov ecx, ebx
push edi
push eax
push esi
push eax
push eax
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x20]
push eax
lea eax, [esp + 0xb4]
push eax
call fcn.1019249e
push edi
push 0
push dword [esp + 0x18]
mov esi, eax
mov ecx, ebx
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x18]
push 0
push 0
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.1019249e
test esi, esi
je 0x1018fe80
test eax, eax
je 0x1018fe80
xor eax, eax
inc eax
mov dword [esp + 0x30], eax
mov ecx, eax
jmp 0x1018fe5b
cmp eax, 0x30000000
jne 0x1018fe80
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x6c]
shl edi, 2
push edi
push dword [esi + 8]
push eax
call sub.msvcrt.dll_memcpy
mov esi, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [esp + 0x28]
shl esi, 2
push esi
push dword [eax + 8]
lea eax, [esp + 0x74]
add eax, edi
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [eax + 8]
add eax, edi
push edi
push eax
lea eax, [esp + 0x84]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x34]
add esp, 0xc
mov eax, dword [eax + 8]
add eax, esi
push esi
push eax
lea eax, [esp + 0x84]
add eax, edi
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov eax, dword [eax + 8]
push edi
lea eax, [eax + ecx*8]
push eax
lea eax, [esp + 0xb4]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x34]
add esp, 0xc
mov eax, dword [eax + 8]
push esi
mov esi, dword [esp + 0x18]
lea eax, [eax + esi*8]
push eax
lea eax, [esp + 0xb4]
add eax, edi
push eax
call sub.msvcrt.dll_memcpy
mov edi, dword [esp + 0x1c]
add esp, 0xc
xor eax, eax
mov ecx, ebx
push dword [esp + 0x18]
push eax
push edi
push eax
push eax
mov eax, dword [esp + 0x20]
add eax, esi
push eax
lea eax, [esp + 0x84]
push eax
call fcn.1019249e
push dword [esp + 0x18]
mov esi, eax
xor eax, eax
push eax
push edi
push eax
push eax
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x20]
push eax
lea eax, [esp + 0x94]
mov ecx, ebx
push eax
call fcn.1019249e
push dword [esp + 0x18]
mov dword [esp + 0x54], eax
mov ecx, ebx
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x10]
push 0
push edi
push 0
push 0
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.1019249e
test esi, esi
je 0x1018fe80
cmp dword [esp + 0x50], 0
je 0x1018fe80
test eax, eax
je 0x1018fe80
and dword [esp + 0x30], 0
xor ecx, ecx
inc ecx
jmp 0x1018fe5b
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 + 0x50], eax
mov eax, dword [eax]
mov edx, dword [edx + eax*4]
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
jne 0x1018fe80
mov eax, dword [ecx + 8]
cmp eax, dword [edx + 8]
jne 0x1018fe80
mov eax, dword [ecx + 0xc]
cmp eax, dword [edx + 0xc]
jne 0x1018fe80
mov esi, dword [esp + 0xc]
xor eax, eax
inc eax
shl esi, 2
push esi
push dword [esp + 0x54]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x74]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
shl eax, 2
push eax
push dword [edi + 8]
lea eax, [esp + 0x74]
add eax, esi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 0x2c]
and dword [esp + 0x30], 0
test ecx, ecx
je 0x1018fe80
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
cmp edx, eax
je 0x1018fe7c
mov esi, dword [esp + 0x3c]
push 4
mov eax, dword [esi + eax*4]
add eax, dword [esi + edx*4]
pop edx
cmp edx, eax
sbb eax, eax
not eax
and ecx, eax
test ecx, ecx
jne 0x1018febf
mov esi, dword [esp + 0x48]
mov edx, dword [ebx + 0xc]
cmp edx, esi
jbe 0x1018fea1
mov eax, dword [ebx + 0x18]
dec edx
mov dword [ebx + 0xc], edx
mov ecx, dword [eax + edx*4]
test ecx, ecx
je 0x1018fe87
push ecx
call fcn.1013c656
jmp 0x1018fe84
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
inc edx
mov dword [esp + 0x1c], edx
cmp edx, eax
jb 0x1018f8dd
jmp 0x101901ce
call fcn.10180f96
test eax, eax
je 0x1018fed7
mov ecx, eax
call fcn.10180810
mov edi, eax
mov dword [esp + 0x18], eax
jmp 0x1018fedd
xor edi, edi
mov dword [esp + 0x18], edi
test edi, edi
je 0x101901f3
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
add ecx, dword [esp + 0xc]
push 0
mov eax, dword [esi]
xor eax, ecx
push ecx
push dword [esp + 0x70]
and eax, 0xfffff
mov ecx, edi
xor eax, dword [esi]
push eax
call fcn.10180846
mov edx, eax
mov dword [esp + 0x2c], edx
test edx, edx
js 0x1018f901
push esi
mov ecx, edi
call fcn.10180b36
mov esi, eax
test esi, esi
js 0x1018f905
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
cmp ecx, esi
je 0x1018ff7d
xor edx, edx
cmp dword [ebx + 8], edx
jbe 0x1018ff6f
mov edi, ecx
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + edx*4]
mov eax, dword [esp + 0x44]
cmp eax, dword [ecx + 4]
jne 0x1018ff61
cmp edi, dword [ecx + 0xc]
jne 0x1018ff61
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0xc], esi
mov eax, dword [eax + esi*4]
add dword [ecx + 0x10], eax
inc edx
cmp edx, dword [ebx + 8]
jb 0x1018ff40
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + ecx*4]
add dword [edx + esi*4], eax
and dword [edx + ecx*4], 0
mov ecx, dword [esp + 0x10]
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 + 0x34]
add esp, 0xc
mov eax, dword [esi + 0xc]
shl eax, 2
push eax
mov eax, dword [esp + 0x14]
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 ebx, dword [esp + 0x18]
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esi]
mov eax, edx
and eax, 0xf0000000
lea ecx, [ecx + ebx]
mov ebx, dword [esp + 0x54]
shl ecx, 2
mov dword [esp + 0x3c], ecx
cmp eax, 0x10000000
jne 0x1018fff7
push ecx
lea eax, [esp + 0x70]
push eax
push dword [edi + 8]
call sub.msvcrt.dll_memcpy
mov edx, dword [esi]
add esp, 0xc
mov ecx, dword [esp + 0x3c]
and edx, 0xf0000000
cmp edx, 0x20000000
jne 0x10190041
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x6c]
test esi, esi
je 0x10190018
lea eax, [esp + 0x9c]
push ecx
push eax
push dword [edi + 8]
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x7c]
test esi, esi
je 0x10190034
lea eax, [esp + 0x8c]
mov esi, dword [esp + 0x3c]
push esi
push eax
mov eax, dword [edi + 8]
add eax, esi
jmp 0x1019008c
cmp edx, 0x30000000
jne 0x10190095
push ecx
lea eax, [esp + 0x70]
push eax
push dword [edi + 8]
call sub.msvcrt.dll_memcpy
mov esi, dword [esp + 0x48]
lea eax, [esp + 0x88]
add esp, 0xc
push esi
push eax
mov eax, dword [edi + 8]
add eax, esi
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0xb8]
add esp, 0xc
add ecx, dword [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 + 0x34]
xor edx, edx
push 1
mov ecx, dword [eax]
mov eax, dword [eax + 4]
and ecx, 0xfffff
div ecx
mov ecx, ebx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0xc4]
push eax
push dword [edi + 0x10]
call fcn.101952f7
xor esi, esi
cmp dword [esp + 0x44], esi
jbe 0x101900ff
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0xc]
mov ecx, dword [edi + 0xc]
push 0
push eax
imul ecx, esi
lea eax, [esp + 0xc4]
push eax
mov eax, dword [edi + 8]
lea eax, [eax + ecx*4]
mov ecx, ebx
push eax
call fcn.101952f7
inc esi
cmp esi, dword [esp + 0x44]
jb 0x101900d1
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x1019010d
push ecx
call fcn.1013c656
mov eax, dword [ebx + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [eax + ecx*4], edi
xor ecx, ecx
mov eax, dword [esp + 0x34]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], ecx
mov edi, dword [ebx + 0xc]
mov eax, dword [esp + 0x48]
cmp edi, eax
jbe 0x101901ba
sub edi, eax
push 4
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.100fa56f
mov dword [esp + 0x58], eax
test eax, eax
je 0x101901f3
mov ecx, dword [ebx + 0x18]
mov esi, edi
mov edx, dword [esp + 0x48]
shl esi, 2
push esi
lea ecx, [ecx + edx*4]
push ecx
push eax
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [esp + 0x48]
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 + 0x28]
add esp, 0xc
mov eax, dword [ebx + 0x18]
shl ecx, 2
add eax, ecx
push esi
mov esi, dword [esp + 0x5c]
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.10195520
mov esi, dword [esp + 0x38]
mov dword [esp + 0x5c], 1
dec esi
mov edx, dword [ebx + 0xc]
inc esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x48], edx
cmp esi, edx
jb 0x1018f760
xor eax, eax
cmp dword [esp + 0x5c], eax
sete al
mov dword [esp + 0x2c], eax
mov esi, eax
jmp 0x101901f8
mov esi, 0x8007000e
push dword [esp + 0x60]
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.101aa740
mov esp, ebp
pop ebp
ret