Function at 0x10013820
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10077870
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x1009f1f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
movss xmm0, dword [ebp + 8]
lea edi, [ecx + 0x1ec]
ucomiss xmm0, dword [0x1007e9d4]
mov byte [ebp - 4], 3
lahf
test ah, 0x44
jp 0x100139b4
push str._bg.png
lea eax, [ebp - 0x8c]
push edi
push eax
call fcn.1000f9c0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x70]
cmp eax, esi
je 0x100138f7
mov ecx, eax
call fcn.100046e0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x60], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x8c]
call fcn.100046e0
push str.close.png
lea eax, [ebp - 0x8c]
push edi
push eax
call fcn.1000f9c0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x58]
cmp eax, esi
je 0x1001394b
mov ecx, eax
call fcn.100046e0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x8c]
call fcn.100046e0
push str._noneed.png
lea eax, [ebp - 0x8c]
push edi
push eax
call fcn.1000f9c0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x1001399f
mov ecx, eax
call fcn.100046e0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x8c]
call fcn.100046e0
push str.ok.png
jmp 0x10013bc6
ucomiss xmm0, dword [0x1007e9d8]
lahf
test ah, 0x44
lea eax, [ebp - 0x8c]
jp 0x10013acb
push str._bg_1_5.png
push edi
push eax
call fcn.1000f9c0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x70]
cmp eax, esi
je 0x10013a0e
mov ecx, eax
call fcn.100046e0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x60], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x8c]
call fcn.100046e0
push str.close_1_5.png
lea eax, [ebp - 0x8c]
push edi
push eax
call fcn.1000f9c0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x58]
cmp eax, esi
je 0x10013a62
mov ecx, eax
call fcn.100046e0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x8c]
call fcn.100046e0
push str._noneed_1_5.png
lea eax, [ebp - 0x8c]
push edi
push eax
call fcn.1000f9c0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x10013ab6
mov ecx, eax
call fcn.100046e0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x8c]
call fcn.100046e0
push str.ok_1_5.png
jmp 0x10013bc6
push str._bg_2_0.png
push edi
push eax
call fcn.1000f9c0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x70]
cmp eax, esi
je 0x10013b0e
mov ecx, eax
call fcn.100046e0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x60], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x8c]
call fcn.100046e0
push str.close_2_0.png
lea eax, [ebp - 0x8c]
push edi
push eax
call fcn.1000f9c0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x58]
cmp eax, esi
je 0x10013b62
mov ecx, eax
call fcn.100046e0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x8c]
call fcn.100046e0
push str._noneed_2_0.png
lea eax, [ebp - 0x8c]
push edi
push eax
call fcn.1000f9c0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x10013bb6
mov ecx, eax
call fcn.100046e0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x8c]
call fcn.100046e0
push str.ok_2_0.png
lea eax, [ebp - 0x8c]
push edi
push eax
call fcn.1000f9c0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x10013c0a
mov ecx, eax
call fcn.100046e0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x8c]
call fcn.100046e0
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x70]
push eax
call esi
test eax, eax
je 0x10013ce5
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call esi
test eax, eax
je 0x10013ce5
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call esi
test eax, eax
je 0x10013ce5
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
je 0x10013ce5
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
push 1
cmovae eax, dword [ebp - 0x70]
push eax
push 0
call fcn.10013340
mov ecx, eax
call fcn.10042310
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push 3
cmovae eax, dword [ebp - 0x58]
push eax
push 1
call fcn.10013340
mov ecx, eax
call fcn.10042310
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 3
cmovae eax, dword [ebp - 0x40]
push eax
push 2
call fcn.10013340
mov ecx, eax
call fcn.10042310
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 3
cmovae eax, dword [ebp - 0x28]
push eax
push 3
call fcn.10013340
mov ecx, eax
call fcn.10042310
mov byte [ebp - 0x71], 1
jmp 0x10013ce9
mov byte [ebp - 0x71], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10013d23
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10013d19
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013e25
push edx
push ecx
call fcn.100282eb
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x10013d71
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10013d67
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013e2a
push edx
push ecx
call fcn.100282eb
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x10013dbb
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10013db1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013e2f
push edx
push ecx
call fcn.100282eb
add esp, 8
mov edx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 8
jb 0x10013e05
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10013dfb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013e34
push edx
push ecx
call fcn.100282eb
add esp, 8
mov al, byte [ebp - 0x71]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002865c
mov esp, ebp
pop ebp
ret 4
call fcn.1004d799
call fcn.1004d799
call fcn.1004d799
call fcn.1004d799
int3