Function at 0x1001d710
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dfd73
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x1025e344]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2b0], esi
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2c4], ebx
mov dword [ebp - 0x2a4], ebx
mov dword [ebp - 0x2bc], 0
mov dword [ebp - 4], 1
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x1001ddfc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 2
mov ecx, ebx
push 0x101fe8a0
call fcn.10004060
test al, al
jne 0x1001d7a8
push 0
push 0x101fe8a0
mov ecx, ebx
call fcn.10006ab0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
or edi, 0xffffffff
mov dword [ebp - 0x2bc], 1
cmp dword [eax - 0xc], 0
je 0x1001ddbd
mov eax, dword [esi + 0x68]
cmp dword [eax - 0xc], 0
je 0x1001ddbd
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001ddbd
mov eax, dword [esi + 0x70]
lea ecx, [esi + 0x70]
push ecx
call dword [eax]
mov esi, dword [esi + 0x28]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2a0], esi
mov ebx, dword [esi + 4]
cmp byte [ebx + 0xd], 0
jne 0x1001d854
test eax, eax
je 0x1001ddfc
mov ecx, dword [ebx + 0x10]
mov edx, eax
nop dword [eax]
mov di, word [ecx]
cmp di, word [edx]
jne 0x1001d836
test di, di
je 0x1001d832
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x1001d836
add ecx, 4
add edx, 4
test di, di
jne 0x1001d810
xor ecx, ecx
jmp 0x1001d83b
sbb ecx, ecx
or ecx, 1
shr ecx, 0x1f
test cl, cl
je 0x1001d847
mov ebx, dword [ebx + 8]
jmp 0x1001d84b
mov esi, ebx
mov ebx, dword [ebx]
cmp byte [ebx + 0xd], 0
je 0x1001d800
or edi, 0xffffffff
cmp esi, dword [ebp - 0x2a0]
je 0x1001d899
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1001de06
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001d88d
test dx, dx
je 0x1001d889
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001d88d
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001d867
xor eax, eax
jmp 0x1001d892
sbb eax, eax
or eax, 1
shr eax, 0x1f
test al, al
je 0x1001d8de
mov ebx, dword [ebp - 0x2b0]
lea eax, [ebp + 0xc]
mov dword [ebp - 0x2a0], eax
lea eax, [ebp - 0x2b1]
push eax
lea eax, [ebp - 0x2a0]
push eax
push 0x10201342
lea ecx, [ebx + 0x28]
call fcn.10016700
push eax
add eax, 0x10
lea ecx, [ebx + 0x28]
push eax
push esi
lea eax, [ebp - 0x2a0]
push eax
call fcn.10017130
mov esi, dword [ebp - 0x2a0]
mov eax, dword [esi + 0x14]
sub eax, 0x10
push eax
call fcn.100041a0
mov ebx, eax
add esp, 4
lea esi, [ebx + 0x10]
mov dword [ebp - 0x2c8], esi
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2b0]
add ecx, 0x70
push ecx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi - 0xc], 0
jne 0x1001d930
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001ddb7
mov ecx, dword [esi]
push esi
jmp 0x1001ddb2
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.101a08b0
mov ecx, esi
lea eax, [ebp - 0x298]
add esp, 0xc
mov dword [ebp - 0x29c], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001d957
sub ecx, edx
sar ecx, 1
push 0x80
lea eax, [ecx + 1]
lea edi, [eax*4]
mov dword [ebp - 0x2a0], eax
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x29c]
push edi
push eax
call fcn.10016150
add esp, 0x10
push 0
push 0
push edi
push dword [ebp - 0x29c]
mov edi, dword [ebp - 0x2a0]
push edi
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp - 0x2a8], ecx
test eax, eax
jne 0x1001da31
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1001da2b
push 0
push 0
push 0
push 0
push edi
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
lea eax, [ebp - 0x298]
push 0x80
push eax
lea eax, [ebp - 0x29c]
push edi
push eax
call fcn.10016150
add esp, 0x10
push 0
push 0
push edi
push dword [ebp - 0x29c]
push dword [ebp - 0x2a0]
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, eax
neg ecx
sbb ecx, ecx
inc ecx
jmp 0x1001da31
mov ecx, dword [ebp - 0x2a8]
test ecx, ecx
jne 0x1001de10
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x29c]
mov dword [ebp - 0x2a0], esi
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x1001de2f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2ac]
push esi
call fcn.100199d0
test al, al
jne 0x1001db62
test esi, esi
je 0x1001db57
mov edi, esi
lea ecx, [edi + 1]
nop dword [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x1001da90
sub edi, ecx
je 0x1001db57
mov esi, dword [ebp - 0x2ac]
mov edx, dword [ebp - 0x2a0]
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x2b8], eax
mov eax, edx
sub eax, esi
mov dword [ebp - 0x2a8], eax
test edi, edi
js 0x1001de39
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x1001daef
push edi
lea ecx, [ebp - 0x2ac]
call fcn.1000b310
mov esi, dword [ebp - 0x2ac]
mov edx, dword [ebp - 0x2a0]
mov eax, dword [ebp - 0x2a8]
cmp eax, dword [ebp - 0x2b8]
ja 0x1001db37
add eax, esi
jne 0x1001db13
call fcn.101a3ea7
mov dword [eax], 0x16
call fcn.101a3dce
jmp 0x1001db45
cmp dword [esi - 8], edi
jae 0x1001db2a
call fcn.101a3ea7
mov dword [eax], 0x22
call fcn.101a3dce
jmp 0x1001db45
push edi
push eax
push esi
call fcn.101a0330
add esp, 0xc
jmp 0x1001db45
push edi
push edx
push dword [esi - 8]
push esi
call fcn.100073f0
add esp, 0x10
cmp edi, dword [esi - 8]
jg 0x1001de39
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
jmp 0x1001db68
lea ecx, [ebp - 0x2ac]
call fcn.1001cf10
mov esi, dword [ebp - 0x2ac]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x298]
mov eax, dword [ebp - 0x29c]
cmp eax, ecx
je 0x1001db85
push eax
call fcn.101a3eba
add esp, 4
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x1001de43
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2a0], eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2a0]
push 0x101fe8a0
call fcn.10004060
test al, al
jne 0x1001dbcc
push 0
push 0x101fe8a0
lea ecx, [ebp - 0x2a0]
call fcn.10006ab0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [esi - 0xc]
push esi
call fcn.100b7040
add esp, 0x10
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x1001de4d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2a8], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2a8]
push 0x101fe8a0
call fcn.10004060
test al, al
jne 0x1001dc2f
push 0
push 0x101fe8a0
lea ecx, [ebp - 0x2a8]
call fcn.10006ab0
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x2b0]
push dword [eax + 0x68]
lea eax, [ebp - 0x2a8]
push str._s_s.png
push eax
call fcn.10004840
mov edi, dword [ebp - 0x2a8]
add esp, 0x10
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001dcc8
mov byte [ebp - 4], 0xb
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1001dc84
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
or edi, 0xffffffff
mov edx, dword [ebp - 0x2a0]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001dca8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001dcc3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1001dd9f
mov eax, dword [ebp - 0x2a4]
lea edx, [edi - 0x10]
mov dword [ebp - 0x2b0], edx
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x2c0], ecx
cmp edx, ecx
je 0x1001dd48
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x2b8], eax
jl 0x1001dd33
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x1001dd33
push edx
call fcn.100041a0
mov ecx, dword [ebp - 0x2b8]
mov edi, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1001dd26
mov edx, dword [ebp - 0x2c0]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x2a4]
lea eax, [edi + 0x10]
mov dword [ecx], eax
jmp 0x1001dd42
push dword [edi - 0xc]
mov ecx, dword [ebp - 0x2a4]
push edi
call fcn.10006ab0
mov edx, dword [ebp - 0x2b0]
mov byte [ebp - 4], 0xb
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001dd63
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov eax, edi
mov edx, dword [ebp - 0x2a0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001dd84
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001dd9f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, edi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x1001ddb7
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x2a4]
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x1001dddc
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d02f2
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.10004040
push 0x80004005
call fcn.10004040
push 0x80
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0x29c]
call fcn.100161d0
add esp, 0xc
call fcn.100199b0
push 0x80004005
call fcn.10004040
push 0x80070057
call fcn.10004040
push 0x80004005
call fcn.10004040
push 0x80004005
call fcn.10004040
int3