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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517f06
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x5521f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x9c], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xa0], 0xf
mov dword [ebp - 0xa4], 0
mov byte [ebp - 0xb4], 0
lea eax, [ebp - 0xb4]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x74]
call fcn.00417f10
add esp, 4
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xa0]
cmp eax, 0x10
jb 0x407ea5
inc eax
lea ecx, [ebp - 0xb4]
push eax
push dword [ebp - 0xb4]
call fcn.004023a0
cmp dword [ebp - 0x60], 0x10
lea eax, [ebp - 0x74]
xorps xmm0, xmm0
mov dword [ebp - 0xa0], 0xf
cmovae eax, dword [ebp - 0x74]
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0xa4], 0
mov byte [ebp - 0xb4], 0
movups xmmword [ebp - 0xe4], xmm0
mov dword [ebp - 0xc4], 0
movups xmmword [ebp - 0xd4], xmm0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
call fcn.004336f0
mov esi, eax
test esi, esi
je 0x407f40
mov eax, dword [esi]
lea ecx, [ebp - 0x94]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x2c]
call eax
test al, al
je 0x407f40
mov edi, dword [ebp - 0x94]
mov dword [ebp - 0x14], edi
jmp 0x407f55
xor edi, edi
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 7
test esi, esi
je 0x407f55
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov byte [ebp - 4], 3
mov byte [ebp - 4], 8
test edi, edi
je 0x408223
mov eax, dword [0x5670c8]
cmp dword [eax + 0x134], 0x10
jb 0x407f7b
mov ecx, dword [eax + 0x120]
jmp 0x407f81
lea ecx, [eax + 0x120]
push dword [eax + 0x130]
lea eax, [ebp - 0x94]
push ecx
push eax
mov ecx, edi
call fcn.0042b480
test al, al
je 0x408223
mov esi, dword [ebp - 0x94]
cmp dword [esi + 4], 6
jne 0x408223
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
mov byte [ebp - 4], 9
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
push 0x5439d0
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 0xa
call fcn.004059a0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0xb4]
sub esp, 8
mov ebx, 2
cmp dword [ebp - 0xa0], 0x10
mov ecx, esp
mov dword [ebp - 0x9c], ebx
cmovae eax, dword [ebp - 0xb4]
mov dword [ecx], eax
mov eax, dword [ebp - 0xa4]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x94]
push eax
mov ecx, esi
call fcn.0042b480
test al, al
je 0x4080a1
mov ecx, dword [ebp - 0x94]
lea edx, [ebp - 0x5c]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
call eax
test al, al
je 0x4080a1
push str.path
lea ecx, [ebp - 0xd0]
call fcn.004059a0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0xc
push eax
lea eax, [ebp - 0xd0]
mov ebx, 6
push eax
mov ecx, esi
mov dword [ebp - 0x9c], ebx
call fcn.0042b690
mov byte [ebp - 0x8d], 0
test al, al
jne 0x4080a8
mov byte [ebp - 0x8d], 1
mov dword [ebp - 4], 0xb
test bl, 4
je 0x4080c8
and ebx, 0xfffffffb
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x9c], ebx
call fcn.00402210
lea ecx, [ebp - 0xb4]
mov dword [ebp - 4], 0xa
call fcn.00402210
cmp byte [ebp - 0x8d], 0
je 0x4080ea
xor bl, bl
jmp 0x4081c9
sub esp, 8
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x2c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x44]
call fcn.00425120
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x408129
xor bl, bl
jmp 0x40819c
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x8c]
call fcn.004175a0
sub esp, 8
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x5c]
mov ecx, esp
push eax
call fcn.004021a0
sub esp, 8
lea eax, [ebp - 0x8c]
mov ecx, esp
push eax
call fcn.004021a0
call fcn.0042d2a0
add esp, 0x10
lea ecx, [ebp - 0x44]
test al, al
jne 0x408172
call fcn.00424530
xor bl, bl
jmp 0x40818d
mov eax, dword [ebp - 0xb8]
cmp eax, ecx
je 0x40818b
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call fcn.00408f60
mov bl, 1
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xd
call fcn.00402210
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x4081b5
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00406490
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x4081e2
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00406490
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x40820f
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.004023a0
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
jmp 0x408225
xor bl, bl
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x14], 0
test edi, edi
je 0x40823c
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x408258
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.004023a0
mov dword [ebp - 0x60], 0xf
mov al, bl
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497eb9
mov esp, ebp
pop ebp
ret 8