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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3f85
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4ef52c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
test ecx, ecx
jne 0x416db2
xor esi, esi
jmp 0x416dc6
mov esi, ecx
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x416db7
sub esi, edx
sar esi, 1
push esi
push ecx
mov ecx, edi
call fcn.00406160
mov ecx, edi
call fcn.00412160
mov edx, 0x4bb890
lea ecx, [ebp - 0x18]
call fcn.00416ca0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x24], ecx
lea esi, [ecx + 1]
test esi, esi
js 0x4173c5
mov ecx, dword [eax - 8]
mov ebx, 1
mov edx, ebx
sub ecx, esi
sub edx, dword [eax - 4]
or ecx, edx
jge 0x416e20
push esi
lea ecx, [ebp - 0x18]
lfence
call fcn.00403690
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
mov edx, 0x5c
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x18]
cmp esi, dword [eax - 8]
jg 0x4173c5
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov edx, 0x4bb8e0
mov word [eax + esi*2], cx
lea ecx, [ebp - 0x14]
call fcn.00416ca0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x24], ecx
lea esi, [ecx + 1]
test esi, esi
js 0x4173c5
mov ecx, dword [eax - 8]
sub ebx, dword [eax - 4]
sub ecx, esi
or ecx, ebx
jge 0x416e84
push esi
lea ecx, [ebp - 0x14]
lfence
call fcn.00403690
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
mov edx, 0x5c
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x14]
cmp esi, dword [eax - 8]
jg 0x4173c5
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x14]
push str.sysnative_
mov word [eax + esi*2], cx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00407a60
add esp, 0xc
mov byte [ebp - 4], 2
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x4170f8
push 0x4db83c
push eax
call fcn.0048ad15
add esp, 8
test eax, eax
je 0x4170f8
sub eax, dword [edi]
sar eax, 1
js 0x4170f8
mov eax, dword [ebp - 0x14]
mov ecx, edi
push dword [eax - 0xc]
lea eax, [ebp - 0x24]
push eax
call fcn.00405460
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4173cf
push ecx
push dword [eax]
call fcn.004987d2
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x24]
test eax, eax
sete byte [ebp - 0xd]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416f42
lfence
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [edi]
mov eax, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x30], eax
call eax
cmp eax, 0xffffffff
je 0x416f65
shr eax, 4
not al
test al, 1
je 0x416f65
mov byte [ebp - 0xd], 1
jmp 0x41735b
cmp byte [ebp - 0xd], 0
je 0x4170ef
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00403430
add eax, 0x10
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
push dword [eax - 0xc]
push 0
call fcn.00405610
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0042c420
add esp, 0xc
mov byte [ebp - 4], 5
mov edx, dword [eax]
mov esi, dword [ebp - 0x1c]
lea eax, [edx - 0x10]
lea ecx, [esi - 0x10]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
cmp eax, ecx
je 0x417019
mov eax, dword [ecx + 0xc]
lea esi, [ecx + 0xc]
shr eax, 0x1f
test al, al
jne 0x41700a
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x41700a
push dword [ebp - 0x24]
call fcn.00403430
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x417002
lfence
mov esi, dword [ebp - 0x28]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
jmp 0x417019
push dword [edx - 0xc]
lea ecx, [ebp - 0x1c]
push edx
call fcn.00406160
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41703a
lfence
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call dword [ebp - 0x30]
cmp eax, 0xffffffff
je 0x4170d5
shr eax, 4
not al
test al, 1
je 0x4170d5
mov ecx, dword [edi]
lea edx, [esi - 0x10]
sub ecx, 0x10
mov dword [ebp - 0x2c], ecx
cmp edx, ecx
je 0x4170b2
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x30], eax
jl 0x4170a7
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x4170a7
push edx
call fcn.00403430
mov edx, dword [ebp - 0x30]
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4170a0
lfence
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x28]
add eax, 0x10
mov dword [edi], eax
jmp 0x4170b2
push dword [esi - 0xc]
mov ecx, edi
push esi
call fcn.00406160
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4170cc
lfence
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 0xd], 1
jmp 0x41735b
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4170ef
lfence
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 0xd], 0
jmp 0x41735b
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00403430
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0042c420
add esp, 0x10
mov byte [ebp - 4], 7
or ebx, 0xffffffff
mov edx, dword [eax]
mov ecx, dword [edi]
sub ecx, 0x10
mov dword [ebp - 0x28], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x30], eax
cmp eax, ecx
je 0x417191
lea eax, [ecx + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [eax]
shr eax, 0x1f
test al, al
jne 0x417186
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x417186
push dword [ebp - 0x30]
call fcn.00403430
mov edx, dword [ebp - 0x2c]
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41717f
lfence
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
add eax, 0x10
mov dword [edi], eax
jmp 0x417191
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.00406160
mov byte [ebp - 4], 6
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4171b2
lfence
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [edi]
mov eax, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x24], eax
call eax
cmp eax, 0xffffffff
je 0x4171d0
shr eax, 4
not al
test al, 1
jne 0x417337
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0042c420
add esp, 0xc
mov byte [ebp - 4], 8
mov edx, dword [eax]
mov ecx, dword [edi]
sub ecx, 0x10
mov dword [ebp - 0x28], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x30], eax
cmp eax, ecx
je 0x417251
lea eax, [ecx + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [eax]
shr eax, 0x1f
test al, al
jne 0x417246
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x417246
push dword [ebp - 0x30]
call fcn.00403430
mov edx, dword [ebp - 0x2c]
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41723f
lfence
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
add eax, 0x10
mov dword [edi], eax
jmp 0x417251
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.00406160
mov byte [ebp - 4], 6
mov eax, ebx
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417272
lfence
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [edi]
call dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x417289
shr eax, 4
not al
test al, 1
jne 0x417337
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042c420
add esp, 0xc
mov byte [ebp - 4], 9
mov edx, dword [eax]
mov ecx, dword [edi]
sub ecx, 0x10
mov dword [ebp - 0x2c], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x34], eax
cmp eax, ecx
je 0x417307
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x30], eax
jl 0x4172fc
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x4172fc
push dword [ebp - 0x34]
call fcn.00403430
mov dword [ebp - 0x34], eax
add esp, 4
mov eax, dword [ebp - 0x30]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4172f2
lfence
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x34]
add eax, 0x10
mov dword [edi], eax
jmp 0x417307
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.00406160
mov edx, dword [ebp - 0x28]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417324
lfence
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [edi]
call dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x41733d
shr eax, 4
not al
test al, 1
je 0x41733d
mov byte [ebp - 0xd], 1
jmp 0x417341
mov byte [ebp - 0xd], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41735b
lfence
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417378
lfence
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417395
lfence
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4173b0
lfence
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403750
push 0x80004005
call fcn.00403750
int3