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

Disassembly:
push 0xffffffffffffffff
push 0x457e00
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x471920]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edi
call fcn.0041c08e
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x401d4a
push 0x80004005
call fcn.00402660
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov byte [esp + 0x20], 1
mov ebp, dword [esp + 0x2c]
mov ecx, 0x4622b0
mov eax, ebp
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401d96
cmp dx, di
je 0x401d92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401d96
add eax, 4
add ecx, 4
cmp dx, di
jne 0x401d70
xor eax, eax
jmp 0x401d9b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
sete al
test al, al
je 0x401dd7
mov edi, dword [esp + 0x28]
push 0x4622b0
mov ecx, edi
call fcn.00402680
lea eax, [esi - 0x10]
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401f22
mov ecx, dword [eax]
push eax
jmp 0x401f1b
lea ecx, [esp + 0x14]
push ecx
lea esi, [esp + 0x14]
call fcn.00401420
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401e08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4622d0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00402140
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call fcn.00402930
mov byte [esp + 0x20], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401e53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00402080
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 3
call fcn.00402930
mov byte [esp + 0x20], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401e9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.00402ac0
add esp, 4
lea esi, [eax + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edx, 0xffffffff
cmp eax, 0xffffffff
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
jne 0x401f5b
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401edd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402930
mov esi, dword [esp + 0x10]
add esi, 0xfffffff0
push esi
call fcn.00402ac0
mov edi, dword [esp + 0x2c]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [esp + 0x20], 0
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x401f22
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x20], 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401f46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401eeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x401eeb