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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421886
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x80
mov eax, dword [0x42e010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x7c], ecx
xor eax, eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], eax
call fcn.00401c20
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x78], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x68], xmm0
mov dword [ebp - 4], 0
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x4c]
cmp ecx, 8
jb 0x401f02
mov edx, dword [ebp - 0x60]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401ef8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40224b
push ecx
push edx
call fcn.00409477
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x34], 7
movups xmmword [ebp - 0x48], xmm0
mov word [ebp - 0x48], ax
mov byte [ebp - 4], 1
mov edi, 0x42ea28
mov edx, dword [edi]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401f30
sub ecx, esi
mov dword [ebp - 0x50], 0
sar ecx, 1
xorps xmm0, xmm0
push ecx
push edx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x4c], 0
movups xmmword [ebp - 0x60], xmm0
call fcn.00407dd0
mov esi, dword [ebp - 0x7c]
or esi, 6
mov dword [ebp - 0x80], esi
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x30]
call fcn.00407340
lea eax, [ebp - 0x60]
or esi, 8
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x80], esi
call fcn.00407970
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x48]
call fcn.00407220
and esi, 0xfffffff7
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x7c], esi
cmp ecx, 8
jb 0x401fd9
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401fcf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40224b
push ecx
push edx
call fcn.00409477
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
cmp ecx, 8
jb 0x40202b
mov edx, dword [ebp - 0x60]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402021
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40224b
push ecx
push edx
call fcn.00409477
add esp, 8
cmp dword [ebp - 0x34], 8
lea edx, [ebp - 0x48]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
cmovae edx, dword [ebp - 0x48]
mov eax, edx
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402050
sub eax, esi
lea ecx, [ebp - 0x30]
sar eax, 1
push eax
push edx
call fcn.00407dd0
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40208b
test al, 0x10
jne 0x40208b
mov esi, 1
jmp 0x40208d
xor esi, esi
mov ecx, dword [ebp - 0x1c]
cmp ecx, 8
jb 0x4020c7
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4020bd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40224b
push ecx
push edx
call fcn.00409477
add esp, 8
test esi, esi
jne 0x402192
add edi, 4
cmp edi, 0x42ea48
jne 0x401f26
mov edi, dword [ebp - 0x84]
xorps xmm0, xmm0
push 9
push str.Sango.exe
mov ecx, edi
movups xmmword [edi], xmm0
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], esi
call fcn.00407dd0
mov ecx, dword [ebp - 0x34]
cmp ecx, 8
jb 0x402138
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40212e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402246
push ecx
push edx
call fcn.00409477
add esp, 8
mov ecx, dword [ebp - 0x64]
cmp ecx, 8
jb 0x402172
mov edx, dword [ebp - 0x78]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402168
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402246
push ecx
push edx
call fcn.00409477
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00409469
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp dword [ebp - 0x34], 8
lea edx, [ebp - 0x48]
mov edi, dword [ebp - 0x84]
xorps xmm0, xmm0
cmovae edx, dword [ebp - 0x48]
mov ecx, edx
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4021c0
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00407dd0
mov ecx, dword [ebp - 0x34]
cmp ecx, 8
jb 0x40220e
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402204
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402246
push ecx
push edx
call fcn.00409477
add esp, 8
mov ecx, dword [ebp - 0x64]
cmp ecx, 8
jb 0x402172
mov edx, dword [ebp - 0x78]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402168
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402168
call fcn.0040df2f
call fcn.0040df2f
int3