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

Disassembly:
push 0xffffffffffffffff
push 0x40db16
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x411020]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
mov eax, dword [0x411020]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
lea esi, [esp + 0x20]
call fcn.00401030
test eax, eax
je 0x401df4
mov eax, esi
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401aa0
mov ecx, dword [0x40fc10]
mov edx, dword [0x40fc14]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea eax, [esp + 0x18]
push eax
lea ebx, [esp + 0x24]
call fcn.004010d0
add esp, 4
test eax, eax
jne 0x401dfb
lea esi, [esp + 0x18]
call fcn.00401f00
test eax, eax
je 0x401bf9
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.00401fa0
lea eax, [esp + 0x14]
mov dword [esp + 0x234], 0
call fcn.00402050
mov ebx, dword [esp + 0x14]
lea edx, [esp + 0x20]
mov eax, ebx
sub edx, ebx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401b13
lea edi, [esp + 0x20]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401b30
mov edx, dword [0x40fc30]
lea eax, [esp + 0x18]
mov dword [edi], edx
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401b50
lea edi, [esp + 0x20]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x401b64
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x20]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
jmp 0x401b90
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401b90
mov ecx, dword [0x40fc34]
mov edx, dword [str.eadme.txt]
mov dword [eax], ecx
mov ecx, dword [0x40fc3c]
mov dword [eax + 4], edx
mov edx, dword [0x40fc40]
mov dword [eax + 8], ecx
mov ecx, dword [0x40fc44]
mov dword [eax + 0xc], edx
mov edx, dword [0x40fc48]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
xor eax, eax
jmp 0x401be0
movzx ecx, word [esp + eax + 0x20]
mov word [eax + 0x4130c0], cx
add eax, 2
test cx, cx
jne 0x401be0
jmp 0x401d04
lea ecx, [esp + 0x18]
call fcn.00401210
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401fa0
lea eax, [esp + 0x10]
mov dword [esp + 0x234], 1
call fcn.00402050
mov ebx, dword [esp + 0x10]
lea edx, [esp + 0x20]
mov eax, ebx
sub edx, ebx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401c30
lea edi, [esp + 0x20]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401c46
mov edx, dword [0x40fc30]
lea eax, [esp + 0x18]
mov dword [edi], edx
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401c60
lea edi, [esp + 0x20]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x401c74
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x20]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
jmp 0x401ca0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401ca0
mov ecx, dword [0x40fc34]
mov edx, dword [str.eadme.txt]
mov dword [eax], ecx
mov ecx, dword [0x40fc3c]
mov dword [eax + 4], edx
mov edx, dword [0x40fc40]
mov dword [eax + 8], ecx
mov ecx, dword [0x40fc44]
mov dword [eax + 0xc], edx
mov edx, dword [0x40fc48]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
xor eax, eax
jmp 0x401cf0
movzx ecx, word [esp + eax + 0x20]
mov word [eax + 0x4130c0], cx
add eax, 2
test cx, cx
jne 0x401cf0
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x234], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401d27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4130c0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401ec8
lea esi, [esp + 0x20]
call fcn.00401030
test eax, eax
je 0x401df4
mov edi, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401d51
mov ecx, dword [0x40fc30]
lea eax, [esp + 0x20]
mov dword [edi], ecx
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401d70
mov edx, dword [0x40faa0]
mov cx, word [0x40faa4]
mov dword [eax], edx
mov word [eax + 4], cx
lea eax, [esp + 0x20]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401d96
mov edx, dword [0x40fc34]
mov ecx, dword [str.eadme.txt]
mov dword [eax], edx
mov edx, dword [0x40fc3c]
mov dword [eax + 4], ecx
mov ecx, dword [0x40fc40]
mov dword [eax + 8], edx
mov edx, dword [0x40fc44]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x40fc48]
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x20]
mov word [eax + 0x4130c0], cx
add eax, 2
test cx, cx
jne 0x401de0
xor eax, eax
jmp 0x401ecd
push 0x4130c0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401ec8
lea esi, [esp + 0x20]
call fcn.00401030
test eax, eax
je 0x401df4
mov edi, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401e21
mov edx, dword [0x40fc30]
lea eax, [esp + 0x20]
mov dword [edi], edx
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401e40
mov ecx, dword [0x40faa0]
mov dx, word [0x40faa4]
mov dword [eax], ecx
mov word [eax + 4], dx
lea eax, [esp + 0x20]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401e66
mov ecx, dword [0x40fc34]
mov edx, dword [str.eadme.txt]
mov dword [eax], ecx
mov ecx, dword [0x40fc3c]
mov dword [eax + 4], edx
mov edx, dword [0x40fc40]
mov dword [eax + 8], ecx
mov ecx, dword [0x40fc44]
mov dword [eax + 0xc], edx
mov edx, dword [0x40fc48]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x20]
mov word [eax + 0x4130c0], cx
add eax, 2
test cx, cx
jne 0x401eb0
xor eax, eax
jmp 0x401ecd
mov eax, 1
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00402bb4
add esp, 0x228
ret