Function at 0x4044f0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x830
mov eax, dword [0x41b230]
xor eax, esp
mov dword [esp + 0x82c], eax
cmp byte [0x41d2c8], 0
jne 0x404835
xor eax, eax
push 0x40e
push eax
mov word [esp + 0x424], ax
lea eax, [esp + 0x426]
push eax
mov byte [0x41d2c8], 1
call fcn.0040a890
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x1a
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x404584
lea eax, [esp + 0x41c]
push eax
push dword [esp + 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x40457a
mov eax, dword [esp + 4]
test eax, eax
je 0x404584
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x404584
xor eax, eax
mov word [esp + 0x41c], ax
push edi
lea edi, [esp + 0x420]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x404590
mov eax, dword [0x418c00]
lea ecx, [esp + 0x420]
mov dword [edi], eax
add ecx, 0xfffffffe
lea ecx, [ecx]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4045b0
mov eax, dword [0x418c04]
mov dword [ecx], eax
mov eax, dword [str.45Pic]
mov dword [ecx + 4], eax
mov eax, dword [0x418c0c]
mov dword [ecx + 8], eax
mov eax, dword [0x418c10]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ecx + 0xc], eax
lea eax, [esp + 0x424]
push eax
call esi
cmp eax, 0xffffffff
jne 0x4045fb
xor eax, eax
mov word [esp + 0x424], ax
xor eax, eax
push 0x410
push eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x1a]
push eax
call fcn.0040a890
lea ecx, [esp + 0x430]
add esp, 0xc
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404620
sub ecx, edx
sar ecx, 1
jne 0x40477a
mov eax, dword [0x41d2c4]
test eax, eax
jne 0x404645
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x411
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, 0x412
jae 0x40477a
test eax, eax
je 0x40477a
add eax, eax
cmp eax, 0x412
jae 0x40484a
xor ecx, ecx
mov word [esp + eax + 0x10], cx
lea eax, [esp + 0x10]
push 0x5c
push eax
call fcn.004096be
add esp, 8
test eax, eax
jne 0x4046a3
lea eax, [esp + 0x10]
push 0x2f
push eax
call fcn.004096be
add esp, 8
test eax, eax
je 0x4046a9
xor ecx, ecx
mov word [eax + 2], cx
lea edi, [esp + 0x10]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4046b0
mov eax, dword [0x418c00]
lea ecx, [esp + 0x10]
mov dword [edi], eax
add ecx, 0xfffffffe
lea ebx, [ebx]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4046d0
mov eax, dword [str.config]
mov dword [ecx], eax
mov eax, dword [0x418cf0]
mov dword [ecx + 4], eax
mov eax, dword [0x418cf4]
mov dword [ecx + 8], eax
mov ax, word [0x418cf8]
mov word [ecx + 0xc], ax
lea eax, [esp + 0x10]
push eax
call esi
cmp eax, 0xffffffff
je 0x404773
lea edi, [esp + 0x10]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x404710
mov eax, dword [0x418c00]
mov dword [edi], eax
lea edi, [esp + 0x10]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x404730
push 0
push 0x80
push 4
push 0
push 7
push 0xc0000000
lea eax, [esp + 0x28]
mov ecx, 7
mov esi, str.2345Image.hzv
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x404773
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40477a
xor eax, eax
mov word [esp + 0x10], ax
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404781
sub ecx, edx
sar ecx, 1
jne 0x404808
push 0x207
lea eax, [esp + 0x428]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00409aa5
lea ecx, [esp + 0x1c]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4047b3
sub ecx, edx
sar ecx, 1
je 0x404808
lea edi, [esp + 0x10]
add edi, 0xfffffffe
jmp 0x4047d0
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4047d0
mov eax, dword [0x418c00]
mov dword [edi], eax
lea edi, [esp + 0x10]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4047f0
mov ecx, 7
mov esi, str.2345Image.hzv
rep movsd dword es:[edi], dword [esi]
call fcn.00405985
lea ecx, [esp + 0x10]
mov edx, eax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404816
sub ecx, esi
sar ecx, 1
je 0x404833
lea eax, [esp + 0x10]
push eax
mov ecx, edx
call fcn.00406822
pop esi
pop edi
mov ecx, dword [esp + 0x82c]
xor ecx, esp
call fcn.00408f2b
add esp, 0x830
ret
call fcn.004098c9
int3