Function at 0x1001fe20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101062f4
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1015050c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x10020255
mov ebx, dword [ebp + 8]
mov ecx, edx
add ebx, 4
mov dword [ebp + 8], ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001fe66
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.10005b40
push 0x10118a68
push 0x1011cddc
mov ecx, ebx
call fcn.1001f990
mov ecx, dword [ebx]
mov esi, dword [ecx - 0xc]
cmp esi, 1
jg 0x1001feaa
lea eax, [ecx - 0x10]
push eax
call fcn.10004950
add esp, 4
add eax, 0x10
jmp 0x1001fedd
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x1001feba
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x1001fec6
call fcn.10005390
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
mov eax, dword [ebx]
lea ecx, [ebp + 0xc]
push 1
lea eax, [eax + esi*2]
add eax, 0xfffffffe
push eax
call fcn.10007040
mov eax, dword [ebp + 0xc]
mov edx, 0x10118a68
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x1001ff0f
test si, si
je 0x1001ff06
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x1001ff0f
add ecx, 4
add edx, 4
test si, si
jne 0x1001fee4
mov dword [ebp + 0xc], 0
jmp 0x1001ff17
sbb ecx, ecx
or ecx, 1
mov dword [ebp + 0xc], ecx
or edi, 0xffffffff
lea edx, [eax - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001ff31
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 0xc], 0
mov esi, 0x10
mov dword [ebp - 0x10], esi
jne 0x1001ffd0
mov edx, dword [ebx]
xor esi, esi
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
test eax, eax
cmovns esi, eax
cmp esi, ecx
jl 0x1001ff6a
lea eax, [edx - 0x10]
push eax
call fcn.10004950
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
jmp 0x1001ff95
mov ecx, dword [edx - 0x10]
test ecx, ecx
je 0x1001ff7a
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x1001ff86
call fcn.10005390
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push esi
push dword [ebx]
lea ecx, [ebp + 0xc]
call fcn.10007040
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.1000adf0
lea edx, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
mov esi, 0x30
mov eax, edi
mov dword [ebp - 0x10], esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001ffd0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
mov ebx, esi
call fcn.100288f0
add esp, 4
test eax, eax
jne 0x10020197
push 0x10118a68
push dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
call fcn.1001e820
push dword [0x1014f314]
or esi, 1
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], esi
push eax
call fcn.1001e820
add esp, 0x18
push dword [eax]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 3
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], ebx
call esi
test eax, eax
jne 0x10020073
push 0x10118a68
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.1001e820
push dword [0x1014f318]
mov ecx, ebx
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x14]
or ecx, 4
push eax
mov dword [ebp - 0x10], ecx
call fcn.1001e820
add esp, 0x18
or ebx, 0xc
push dword [eax]
call esi
mov byte [ebp + 0xf], 0
test eax, eax
je 0x10020077
mov byte [ebp + 0xf], 1
test bl, 8
je 0x1002009c
mov edx, dword [ebp - 0x14]
and ebx, 0xfffffff7
mov dword [ebp - 0x10], ebx
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002009c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 2
test bl, 4
je 0x100200c8
mov edx, dword [ebp - 0x18]
and ebx, 0xfffffffb
mov dword [ebp - 0x10], ebx
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100200c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
mov esi, ebx
and ebx, 0xfffffffd
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ebx
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100200f1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
and esi, 0xfffffffc
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 0x10], esi
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10020118
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0xf], 0
mov ebx, dword [ebp + 8]
jne 0x1002019a
push 0x10118a68
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.1001e820
push dword [0x1014f31c]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.1001e820
add esp, 0x18
push eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.1000adf0
mov edx, dword [ebp + 0xc]
mov eax, edi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10020174
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
mov eax, edi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002019a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1002019a
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 0xf]
call fcn.1001e8f0
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 6
mov ecx, dword [ebx]
mov byte [ebp - 4], 7
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x100201c8
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x100201de
call fcn.10005390
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x10020269
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebx]
add eax, 0x10
mov dword [ebp + 8], eax
or esi, 0x40
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
push dword [ecx - 0xc]
lea eax, [ebp + 8]
push ecx
push eax
call fcn.1001ecc0
add esp, 0x14
lea eax, [ebp + 8]
mov ecx, 0x10154eb0
push eax
call fcn.10020980
mov edx, dword [ebp + 8]
mov eax, edi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10020236
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x10020255
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.100047f0
int3