Function at 0x40a280
Capabilities:
Access peb ldr_data
Check if file exists
Create directory
Get common file path
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x598b0d
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5fd890]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5fd890]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x32]
push ecx
mov word [esp + 0x34], ax
call fcn.0056b700
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
push 0
push 0x10
lea edx, [esp + 0x30]
push edx
push 0
call edi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
call fcn.00404a60
push 0x5ce41c
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x248], 0
call fcn.00404340
add esp, 0xc
mov byte [esp + 0x23c], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a33e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x5ce144
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str._site_site.ico
lea ecx, [esi + 0x430]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00404340
add esp, 0xc
mov byte [esp + 0x23c], 3
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x14]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ecx
call ebp
test eax, eax
jne 0x40a3d8
push 0x5ce434
lea ecx, [esp + 0x1c]
call fcn.00404a60
lea edx, [esi + 0x438]
push edx
lea ecx, [esp + 0x20]
lea ebx, [esp + 0x18]
mov byte [esp + 0x240], 4
call fcn.0040a5b0
mov byte [esp + 0x23c], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a3d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x208
lea ecx, [esp + 0x2c]
push 0
push ecx
call fcn.0056b700
add esp, 0xc
push 0
push 2
lea edx, [esp + 0x30]
push edx
push 0
call edi
call fcn.00470afc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a41e
push 0x80004005
call fcn.004020b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push 0x5ce3a4
mov bl, 5
push edx
mov byte [esp + 0x248], bl
call fcn.00402180
push 0x5ce41c
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00404340
add esp, 0x18
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x240], 6
call fcn.004044b0
mov byte [esp + 0x23c], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a49b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call ebp
mov edi, dword [esp + 0x18]
test eax, eax
jne 0x40a507
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0x5ce434
lea ecx, [esp + 0x24]
call fcn.00404a60
add esi, 0x438
push esi
lea ecx, [esp + 0x20]
lea ebx, [esp + 0x18]
mov byte [esp + 0x240], 7
call fcn.0040a5b0
mov byte [esp + 0x23c], 5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a507
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x23c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a52b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x23c], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a553
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x23c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a57e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00565f92
add esp, 0x22c
ret