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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e93f
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x5bf23c]
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 edi, ecx
push 0x1f
mov edx, 0x5a4894
lea ecx, [ebp - 0x12c]
call fcn.00403bc0
add esp, 4
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 0x10
jb 0x405586
mov edx, dword [edx]
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x1bc], esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [edx], 0
jne 0x4055ab
xor ecx, ecx
jmp 0x4055b9
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4055b0
sub ecx, ebx
push ecx
push edx
mov ecx, esi
call fcn.004082e0
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
call fcn.00444db0
mov dword [ebp - 4], 0xffffffff
add esp, 0x18
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x4055f7
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.00408800
cmp dword [0x5d72f0], 0x10
lea edx, [ebp - 0x1c0]
mov eax, 0x5d72dc
mov dword [ebp - 0x118], 0xf
cmovae eax, dword [0x5d72dc]
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x1c0], eax
mov eax, dword [0x5d72ec]
push 0
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1bc], eax
call fcn.00416350
lea eax, [ebp - 0x1c4]
mov dword [ebp - 4], 2
mov edx, dword [edi]
lea ecx, [ebp - 0x12c]
push eax
call fcn.00445500
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov ecx, dword [ebp - 0x118]
mov bl, al
cmp ecx, 8
jb 0x405698
inc ecx
push ecx
push dword [ebp - 0x12c]
lea ecx, [ebp - 0x12c]
call fcn.00409090
xor eax, eax
mov dword [ebp - 0x118], 7
mov dword [ebp - 0x11c], 0
mov word [ebp - 0x12c], ax
test bl, bl
je 0x405955
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x130], 0xf
mov dword [ebp - 0x134], eax
mov byte [ebp - 0x144], al
mov dword [ebp - 4], 3
lea edx, [ebp - 0x144]
mov ecx, dword [edi]
push 0xffffffffffffffff
call fcn.0040fc50
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
cmovae eax, dword [ebp - 0x144]
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x1bc], eax
lea eax, [ebp - 0x1c0]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00411e80
mov byte [ebp - 4], 4
lea eax, [ebp - 0x12c]
add esp, 4
cmp dword [ebp - 0x118], 0x10
mov ecx, esp
cmovae eax, dword [ebp - 0x12c]
sub esp, 8
mov dword [ecx], eax
mov eax, dword [ebp - 0x11c]
mov dword [ecx + 4], eax
mov ecx, esp
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x11c]
mov dword [ecx + 4], eax
call fcn.00418250
add esp, 0x10
test eax, eax
jne 0x4058d3
mov eax, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x405794
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4058d3
push 0x19
mov edx, 0x5a4918
lea ecx, [ebp - 0x174]
call fcn.00403bc0
add esp, 4
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x4057c5
mov eax, dword [eax]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1bc], esp
push eax
call fcn.00407aa0
mov byte [ebp - 4], 6
mov byte [ebp - 4], 5
call fcn.00444db0
add esp, 0x18
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x174]
call fcn.004079d0
lea ecx, [ebp - 0x1b8]
call fcn.004181b0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x15c]
push 0x5a4354
mov byte [ebp - 0x1b8], 1
mov byte [ebp - 0x19c], 1
call fcn.00407830
push 0x5a4358
mov byte [ebp - 4], 8
lea eax, [ebp - 0x174]
push dword [edi]
push eax
call fcn.00409610
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 9
call fcn.00408c30
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 8
call fcn.004077f0
lea eax, [ebp - 0x1b8]
push eax
lea edx, [ebp - 0x15c]
lea ecx, [ebp - 0x1c0]
call fcn.00415d30
add esp, 4
lea ecx, [ebp - 0x1bc]
call fcn.004120b0
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 7
call fcn.004077f0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1a0]
cmp eax, 8
jb 0x4058b6
inc eax
lea ecx, [ebp - 0x1b4]
push eax
push dword [ebp - 0x1b4]
call fcn.00409090
xor eax, eax
mov dword [ebp - 0x1a0], 7
mov dword [ebp - 0x1a4], 0
mov word [ebp - 0x1b4], ax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x4058f5
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.00408800
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x130]
cmp eax, 0x10
jb 0x405935
inc eax
lea ecx, [ebp - 0x144]
push eax
push dword [ebp - 0x144]
call fcn.00408800
mov dword [ebp - 0x130], 0xf
mov dword [ebp - 0x134], 0
mov byte [ebp - 0x144], 0
jmp 0x405a88
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00505ae0
push 0x20
mov edx, 0x5a48f4
lea ecx, [ebp - 0x12c]
call fcn.00403bc0
add esp, 0x10
mov dword [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
jb 0x40598c
mov eax, dword [eax]
push dword [ebp - 0x1c4]
push eax
lea eax, [ebp - 0x114]
push str._s_errcode:_d
push eax
call fcn.004018d0
mov dword [ebp - 4], 0xffffffff
add esp, 0x10
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x4059cc
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.00408800
sub esp, 0x18
mov dword [ebp - 0x118], 0xf
mov edx, esp
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
mov dword [ebp - 0x1bc], esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [ebp - 0x114], 0
jne 0x405a10
xor ecx, ecx
jmp 0x405a29
lea ecx, [ebp - 0x114]
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405a20
sub ecx, esi
push ecx
lea eax, [ebp - 0x114]
mov ecx, edx
push eax
call fcn.004082e0
mov dword [ebp - 4], 0xb
mov dword [ebp - 4], 0xffffffff
call fcn.00444db0
mov ecx, esp
mov dword [ebp - 0x1bc], esp
push 0xffffffffffffffff
push 0
push 0x5d72dc
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.004083e0
mov dword [ebp - 4], 0xc
mov dword [ebp - 4], 0xffffffff
call fcn.00444db0
add esp, 0x18
mov ecx, dword [edi]
xor dl, dl
call fcn.00414710
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.004ff5c3
mov esp, ebp
pop ebp
ret