Function at 0x100039c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001de48
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x100260b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
cmp dword [edi + 4], 0
je 0x10003b6a
mov eax, dword [0x10026038]
mov edx, dword [eax + 0xc]
mov ecx, 0x10026038
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp - 4], 0
call fcn.10003800
test al, al
je 0x10003bfd
mov esi, dword [ebp - 0x14]
lea ebx, [esi - 0x10]
mov eax, ebx
call fcn.10002e20
lea edi, [eax + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10003a47
mov byte [ebp - 0xd], 1
test al, 0x10
je 0x10003a4b
mov byte [ebp - 0xd], 0
add edi, 0xfffffff0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10003a67
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
cmp byte [ebp - 0xd], 0
jne 0x10003a8f
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10003cc6
mov ecx, dword [ebx]
push ebx
jmp 0x10003cbf
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
push 0x5c
push eax
call fcn.1000c47b
add esp, 8
test eax, eax
jne 0x10003afc
push 0x5c
push esi
call fcn.1000c4a2
add esp, 8
test eax, eax
jne 0x10003ab8
or eax, 0xffffffff
jmp 0x10003abc
sub eax, esi
sar eax, 1
lea ecx, [eax + 1]
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.10003d90
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.10002a40
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10003af9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x14]
mov eax, dword [ebx + 4]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x10003b14
push 0x80004005
call fcn.10003470
push eax
push esi
call fcn.1000be6c
add esp, 8
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x10003b4e
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10003cc6
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x10003cc6
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10003b67
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov edi, dword [ebp + 8]
mov edx, dword [0x10026038]
mov eax, dword [edx + 0xc]
mov ecx, 0x10026038
call eax
add eax, 0x10
mov dword [ebp + 8], eax
push 0x2001f
lea ecx, [ebp + 8]
push ecx
push ecx
mov ebx, 2
mov dword [ebp - 4], ebx
mov edx, esp
mov dword [ebp - 0x18], esp
push edx
mov ecx, 0x100235bc
call fcn.10003ce0
push ecx
mov byte [ebp - 4], 3
mov ecx, dword [edi + 0x10]
mov eax, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.10003ce0
push 0x80000000
mov byte [ebp - 4], bl
call fcn.10009630
test al, al
je 0x10003ca0
mov esi, dword [ebp + 8]
mov ecx, 0x100235dc
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10003c0c
test dx, dx
je 0x10003bf6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10003c0c
add eax, 4
add ecx, 4
test dx, dx
jne 0x10003bd4
xor eax, eax
or ebx, 0xffffffff
jmp 0x10003c15
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
jmp 0x10003caa
sbb eax, eax
mov ebx, 0xffffffff
sbb eax, ebx
test eax, eax
setne al
test al, al
lea eax, [esi - 0x10]
mov dword [ebp - 4], ebx
lea ecx, [eax + 0xc]
je 0x10003c33
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jmp 0x10003cba
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10003c48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push ecx
mov ecx, 0x100235f0
lea esi, [ebp + 8]
call fcn.10003ce0
push ecx
mov dword [ebp - 4], 4
mov ecx, dword [edi + 0x14]
mov edx, esp
mov dword [ebp - 0x14], esp
push edx
call fcn.10003ce0
push 0x80000002
mov eax, esi
mov dword [ebp - 4], ebx
call fcn.10009820
test al, al
je 0x10003cc6
cmp dword [ebp + 8], 1
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10003cc6
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4