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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565cdf
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x5b925c]
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, 0x59c430
lea ecx, [ebp - 0x12c]
call fcn.00403b10
add esp, 4
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 0x10
jb 0x405486
mov edx, dword [edx]
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x178], esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [edx], 0
jne 0x4054ab
xor ecx, ecx
jmp 0x4054b9
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4054b0
sub ecx, ebx
push ecx
push edx
mov ecx, esi
call fcn.00408120
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
call fcn.004442e0
mov dword [ebp - 4], 0xffffffff
add esp, 0x18
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x4054f7
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.00408640
cmp dword [0x5d2adc], 0x10
mov eax, 0x5d2ac8
mov dword [ebp - 0x118], 0xf
cmovae eax, dword [0x5d2ac8]
sub esp, 0x28
mov dword [ebp - 0x180], eax
mov eax, dword [0x5d2ad8]
mov dword [ebp - 0x17c], eax
mov eax, esp
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x178], esp
mov dword [eax + 0x24], 0
push 0
lea edx, [ebp - 0x180]
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x12c]
call fcn.00415d30
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [edi]
lea eax, [ebp - 0x184]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x12c]
call fcn.00444b70
mov dword [ebp - 4], 0xffffffff
add esp, 0x2c
mov ecx, dword [ebp - 0x118]
mov bl, al
cmp ecx, 8
jb 0x4055b5
inc ecx
push ecx
push dword [ebp - 0x12c]
lea ecx, [ebp - 0x12c]
call fcn.00408ed0
xor eax, eax
mov dword [ebp - 0x118], 7
mov dword [ebp - 0x11c], 0
mov word [ebp - 0x12c], ax
test bl, bl
je 0x40582a
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], 5
lea edx, [ebp - 0x144]
mov ecx, dword [edi]
push 0xffffffffffffffff
call fcn.0040f9d0
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
cmovae eax, dword [ebp - 0x144]
mov dword [ebp - 0x180], eax
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x17c], eax
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00411b20
mov byte [ebp - 4], 6
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.00417bd0
add esp, 0x10
test eax, eax
jne 0x4057a8
mov eax, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x4056b1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4057a8
push 0x19
mov edx, 0x59c4b4
lea ecx, [ebp - 0x174]
call fcn.00403b10
add esp, 4
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 0x10
jb 0x4056e2
mov eax, dword [eax]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x178], esp
push eax
call fcn.00407900
mov byte [ebp - 4], 8
mov byte [ebp - 4], 7
call fcn.004442e0
add esp, 0x18
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x174]
call fcn.00407830
lea ecx, [ebp - 0x1ac]
call fcn.00417b50
push 0x59bef4
lea ecx, [ebp - 0x15c]
mov word [ebp - 0x1ac], 0x101
call fcn.00407700
push 0x59bef8
mov byte [ebp - 4], 9
lea eax, [ebp - 0x174]
push dword [edi]
push eax
call fcn.00409450
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 0xa
call fcn.00408a70
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 9
call fcn.004076c0
lea eax, [ebp - 0x1ac]
push eax
lea edx, [ebp - 0x15c]
lea ecx, [ebp - 0x180]
call fcn.00415750
add esp, 4
lea ecx, [ebp - 0x17c]
call fcn.00411d10
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 6
call fcn.004076c0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x4057ca
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.00408640
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 0x40580a
inc eax
lea ecx, [ebp - 0x144]
push eax
push dword [ebp - 0x144]
call fcn.00408640
mov dword [ebp - 0x130], 0xf
mov dword [ebp - 0x134], 0
mov byte [ebp - 0x144], 0
jmp 0x405958
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004fc9d0
push 0x20
mov edx, 0x59c490
lea ecx, [ebp - 0x12c]
call fcn.00403b10
add esp, 0x10
mov dword [ebp - 4], 0xb
cmp dword [eax + 0x14], 0x10
jb 0x405861
mov eax, dword [eax]
push dword [ebp - 0x184]
push eax
lea eax, [ebp - 0x114]
push str._s_errcode:_d
push eax
call fcn.004018b0
mov dword [ebp - 4], 0xffffffff
add esp, 0x10
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x4058a1
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.00408640
sub esp, 0x18
mov dword [ebp - 0x118], 0xf
mov edx, esp
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
mov dword [ebp - 0x178], esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [ebp - 0x114], 0
jne 0x4058e5
xor ecx, ecx
jmp 0x4058f9
lea ecx, [ebp - 0x114]
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4058f0
sub ecx, esi
push ecx
lea eax, [ebp - 0x114]
mov ecx, edx
push eax
call fcn.00408120
mov dword [ebp - 4], 0xc
mov dword [ebp - 4], 0xffffffff
call fcn.004442e0
mov ecx, esp
mov dword [ebp - 0x178], esp
push 0xffffffffffffffff
push 0
push 0x5d2ac8
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00408220
mov dword [ebp - 4], 0xd
mov dword [ebp - 4], 0xffffffff
call fcn.004442e0
add esp, 0x18
mov ecx, dword [edi]
xor dl, dl
call fcn.004143a0
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.004f6456
mov esp, ebp
pop ebp
ret