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

Disassembly:
sub esp, 0x83c
mov eax, dword [0x426008]
xor eax, esp
mov dword [esp + 0x834], eax
cmp byte [0x4286d0], 0
push esi
push edi
jne 0x4034e3
xor eax, eax
mov byte [0x4286d0], 1
push 0x40e
push eax
mov word [esp + 0x430], ax
lea eax, [esp + 0x432]
push eax
call fcn.00416110
add esp, 0xc
mov dword [esp + 0xc], 0
lea eax, [esp + 0xc]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x403236
lea eax, [esp + 0x428]
push eax
push dword [esp + 0x10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x40322c
mov eax, dword [esp + 0xc]
test eax, eax
je 0x403236
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x403236
xor eax, eax
mov word [esp + 0x428], ax
lea edi, [esp + 0x428]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x403240
mov eax, dword [0x422780]
lea ecx, [esp + 0x428]
mov dword [edi], eax
add ecx, 0xfffffffe
lea ecx, [ecx]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x403260
mov eax, dword [0x422784]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ecx], eax
mov eax, dword [str.45Pic]
mov dword [ecx + 4], eax
mov eax, dword [0x42278c]
mov dword [ecx + 8], eax
mov eax, dword [0x422790]
mov dword [ecx + 0xc], eax
lea eax, [esp + 0x428]
push eax
call esi
cmp eax, 0xffffffff
jne 0x4032aa
xor eax, eax
mov word [esp + 0x428], ax
xor eax, eax
push 0x410
push eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x1a]
push eax
call fcn.00416110
lea ecx, [esp + 0x434]
add esp, 0xc
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4032d0
sub ecx, edx
sar ecx, 1
jne 0x40342a
mov eax, dword [0x4286cc]
test eax, eax
jne 0x4032f5
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 0x40342a
test eax, eax
je 0x40342a
add eax, eax
cmp eax, 0x412
jae 0x4034fa
xor ecx, ecx
mov word [esp + eax + 0x10], cx
lea eax, [esp + 0x10]
push 0x5c
push eax
call fcn.0040f118
add esp, 8
test eax, eax
jne 0x403353
lea eax, [esp + 0x10]
push 0x2f
push eax
call fcn.0040f118
add esp, 8
test eax, eax
je 0x403359
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 0x403360
mov eax, dword [0x422780]
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 0x403380
mov eax, dword [str.config]
mov dword [ecx], eax
mov eax, dword [0x422798]
mov dword [ecx + 4], eax
mov eax, dword [0x42279c]
mov dword [ecx + 8], eax
mov ax, word [0x4227a0]
mov word [ecx + 0xc], ax
lea eax, [esp + 0x10]
push eax
call esi
cmp eax, 0xffffffff
je 0x403423
lea edi, [esp + 0x10]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4033c0
mov eax, dword [0x422780]
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 0x4033e0
push 0
push 0x80
push 4
push 0
push 7
push 0xc0000000
lea eax, [esp + 0x28]
mov ecx, 7
mov esi, str.2345Image.hzv
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x403423
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40342a
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 0x403431
sub ecx, edx
sar ecx, 1
jne 0x4034b8
push 0x207
lea eax, [esp + 0x42c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0040f3d2
lea ecx, [esp + 0x1c]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403463
sub ecx, edx
sar ecx, 1
je 0x4034b8
lea edi, [esp + 0x10]
add edi, 0xfffffffe
jmp 0x403480
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x403480
mov eax, dword [0x422780]
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 0x4034a0
mov ecx, 7
mov esi, str.2345Image.hzv
rep movsd dword es:[edi], dword [esi]
call fcn.00409750
lea ecx, [esp + 0x10]
mov edx, eax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4034c6
sub ecx, esi
sar ecx, 1
je 0x4034e3
lea eax, [esp + 0x10]
mov ecx, edx
push eax
call fcn.00409820
mov ecx, dword [esp + 0x83c]
pop edi
pop esi
xor ecx, esp
call fcn.0040e73a
add esp, 0x83c
ret
call fcn.0040f2f6
int3