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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
xor edx, edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x424a7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x424a94
add eax, 2
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [0x436c7c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00419fec
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0041a1cc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp word [eax], 0x3a
jne 0x42479b
cmp dword [ebp - 0x20], 2
jle 0x42479b
mov eax, dword [ebp - 0x18]
mov word [eax], 0
sub dword [ebp - 0x18], 2
push 0
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 0x8000
call fcn.0042a8d4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x4246df
mov eax, dword [ebp - 0x28]
call fcn.00422f28
test eax, eax
jne 0x424772
mov eax, dword [ebp - 0x28]
call fcn.00422fe0
test eax, eax
jne 0x424772
add dword [ebp - 0x18], 2
mov eax, dword [ebp - 0x18]
mov word [eax], 0x3a
mov eax, dword [0x436d34]
cmp dword [eax], 4
jne 0x424737
mov eax, dword [0x436d68]
cmp dword [eax], 0
jne 0x42472a
push 0
lea edx, [ebp - 0x2c]
mov eax, dword [0x436d58]
call fcn.00409578
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov dword [ebp - 0x34], edx
mov byte [ebp - 0x30], 0xa
lea ecx, [ebp - 0x34]
mov edx, 1
call fcn.0042a3c8
mov eax, dword [0x436c20]
mov dword [eax], 1
jmp 0x424762
push 0
lea edx, [ebp - 0x38]
mov eax, dword [0x436d58]
call fcn.00409578
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov dword [ebp - 0x34], edx
mov byte [ebp - 0x30], 0xa
lea ecx, [ebp - 0x34]
mov edx, 1
call fcn.0042a3c8
cmp dword [ebp - 0x28], 0xffffffff
je 0x424792
mov eax, dword [ebp - 0x28]
call fcn.0042aa18
jmp 0x424792
mov eax, dword [ebp - 0x28]
call fcn.00422f28
test eax, eax
jne 0x42478a
mov eax, dword [ebp - 0x28]
call fcn.00422fe0
test eax, eax
je 0x424792
mov eax, dword [ebp - 0x28]
call fcn.0042aa18
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
mov eax, 0x250
call fcn.0041aa24
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x18]
mov ax, word [eax]
mov word [ebp - 0x1a], ax
cmp word [ebp - 0x1a], 0x5c
jne 0x4247c5
mov dword [ebp - 0x24], 1
jmp 0x424833
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dx, 0x5c
call fcn.00419f78
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x424806
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
call fcn.00419fec
cmp eax, 2
jl 0x42480a
mov eax, dword [ebp - 0x18]
cmp word [eax + 2], 0x3a
jne 0x42480a
mov eax, dword [ebp - 0x18]
add eax, 4
mov dword [ebp - 0x18], eax
jmp 0x42480a
add dword [ebp - 0x18], 2
mov edx, 0x424aa0
mov eax, dword [ebp - 0x18]
call fcn.00414c2c
test eax, eax
je 0x42482c
mov edx, 0x424aa4
mov eax, dword [ebp - 0x18]
call fcn.00414c2c
test eax, eax
jne 0x424833
mov dword [ebp - 0x24], 1
cmp dword [ebp - 0x24], 0
jne 0x424938
mov eax, dword [0x436d34]
cmp dword [eax], 4
jne 0x4248f9
mov eax, dword [0x436d0c]
cmp dword [eax], 1
jne 0x4248a1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x424874
mov eax, dword [0x436c7c]
xor edx, edx
mov dword [eax], edx
jmp 0x424881
call sub.kernel32.dll_GetLastError_2
mov edx, dword [0x436c7c]
mov dword [edx], eax
cmp dword [ebp - 8], 0xffffffff
je 0x424938
test byte [ebp - 8], 0x10
je 0x424938
mov dword [ebp - 0x24], 1
jmp 0x424938
mov eax, dword [0x436d48]
cmp dword [eax], 1
jne 0x424938
mov eax, dword [0x436d48]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4248d7
mov eax, dword [0x436c7c]
xor edx, edx
mov dword [eax], edx
jmp 0x4248e4
call sub.kernel32.dll_GetLastError_2
mov edx, dword [0x436c7c]
mov dword [edx], eax
cmp dword [ebp - 8], 0xffffffff
je 0x424938
test byte [ebp - 8], 0x10
je 0x424938
mov dword [ebp - 0x24], 1
jmp 0x424938
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x424918
mov eax, dword [0x436c7c]
xor edx, edx
mov dword [eax], edx
jmp 0x424925
call sub.kernel32.dll_GetLastError_2
mov edx, dword [0x436c7c]
mov dword [edx], eax
cmp dword [ebp - 8], 0xffffffff
je 0x424938
test byte [ebp - 8], 0x10
je 0x424938
mov dword [ebp - 0x24], 1
cmp dword [ebp - 0x24], 0
je 0x424993
cmp word [ebp - 0x1a], 0x5c
jne 0x424950
mov eax, 0x424a94
add eax, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004245e4
test al, al
jne 0x424987
mov eax, dword [ebp - 0x20]
add eax, 5
add eax, eax
call fcn.0041aa24
mov edx, dword [ebp - 4]
mov edx, dword [edx]
call fcn.0041a014
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
call fcn.0041a048
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov dword [eax], 0x10
mov dword [ebp - 0x20], 1
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
jmp 0x4249ca
cmp word [ebp - 0x1a], 0x5c
je 0x4249bd
cmp word [ebp - 0x1a], 0x3a
jne 0x4249c3
cmp dword [ebp - 0x20], 2
jne 0x4249c3
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
add dword [ebp - 0x14], 2
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov ax, word [eax]
cmp ax, word [ebp - 0x1a]
je 0x4249a9
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
mov dword [eax + 8], edx
cmp dword [ebp - 0x18], 0
je 0x424a07
mov eax, dword [ebp - 0x18]
cmp word [eax], 0
je 0x4249fc
mov eax, dword [ebp - 0x18]
add eax, 2
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
jmp 0x424a1b
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0xc], edx
jmp 0x424a1b
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], eax
mov dx, 0x2a
mov eax, dword [ebp - 0x18]
call fcn.00419f28
test eax, eax
jne 0x424a3b
mov dx, 0x3f
mov eax, dword [ebp - 0x18]
call fcn.00419f28
test eax, eax
je 0x424a4d
mov eax, dword [ebp - 4]
or dword [eax + 0x18], 8
mov eax, dword [0x436a20]
mov dword [eax], 1
mov dx, 0x2e
mov eax, dword [ebp - 0x18]
call fcn.00419f28
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424a84
lea eax, [ebp - 0x38]
call fcn.00406a1c
lea eax, [ebp - 0x2c]
call fcn.00406a1c
ret