Function at 0x403670
Capabilities:
Create directory
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c53c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x268
mov eax, dword [0x42a018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0xf
mov byte [ebp - 0x240], 0
lea eax, [ebp - 0x120]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x403723
lea ecx, [ebp - 0x120]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403710
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
jmp 0x403742
push str.APPDATA
call fcn.0040c9f6
mov edx, eax
add esp, 4
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403737
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x240]
call fcn.00402390
call fcn.0040c605
cdq
mov ecx, 7
idiv ecx
lea ecx, [ebp - 0x278]
add edx, 5
call fcn.00403590
push 1
push 0x4278d4
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004066f0
movups xmm1, xmmword [eax]
movq xmm0, qword [eax + 0x10]
movups xmmword [ebp - 0x260], xmm1
mov dword [eax + 0x10], 0
movq qword [ebp - 0x250], xmm0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x260]
cmp dword [ebp - 0x24c], 0x10
mov esi, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x250]
movd eax, xmm1
push ecx
cmovae edx, eax
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x22c]
sub eax, esi
push edx
cmp ecx, eax
ja 0x403815
cmp dword [ebp - 0x22c], 0x10
lea eax, [ecx + esi]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x240]
cmovae eax, dword [ebp - 0x240]
add esi, eax
push esi
call fcn.00409140
mov eax, dword [ebp - 0x250]
add esp, 0xc
mov ecx, dword [ebp - 0x244]
mov byte [esi + eax], 0
jmp 0x403834
mov byte [ebp - 0x244], 0
push dword [ebp - 0x244]
push ecx
lea ecx, [ebp - 0x240]
call fcn.00402640
mov ecx, dword [ebp - 0x260]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24c]
cmp eax, 0x10
jb 0x40386e
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x403864
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b7b
push edx
push ecx
call fcn.00407d33
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x264]
cmp edx, 0x10
jb 0x4038ac
mov ecx, dword [ebp - 0x278]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4038a2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b7b
push edx
push ecx
call fcn.00407d33
add esp, 8
cmp dword [ebp - 0x22c], 0x10
lea eax, [ebp - 0x240]
push 0
cmovae eax, dword [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x403b30
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
je 0x403b30
lea eax, [ebp - 0x228]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
js 0x403916
lea ecx, [ebp - 0x228]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403903
sub ecx, edx
lea eax, [ebp - 0x228]
push ecx
push eax
jmp 0x40393f
push str.TMPDIR
call fcn.0040c9f6
mov edx, eax
add esp, 4
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x244], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403930
sub ecx, dword [ebp - 0x244]
push ecx
push edx
lea ecx, [ebp - 0x240]
call fcn.00402390
call fcn.0040c605
and eax, 0x80000007
jns 0x40395b
dec eax
or eax, 0xfffffff8
inc eax
lea edx, [eax + 4]
lea ecx, [ebp - 0x278]
call fcn.00403590
push 1
push 0x4278d4
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004066f0
movups xmm1, xmmword [eax]
movq xmm0, qword [eax + 0x10]
movups xmmword [ebp - 0x260], xmm1
mov dword [eax + 0x10], 0
movq qword [ebp - 0x250], xmm0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x260]
cmp dword [ebp - 0x24c], 0x10
mov ecx, dword [ebp - 0x230]
movd eax, xmm1
mov dword [ebp - 0x244], ecx
cmovae edx, eax
mov dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x22c]
sub eax, ecx
mov ecx, dword [ebp - 0x250]
push ecx
push edx
cmp ecx, eax
ja 0x403a28
mov esi, dword [ebp - 0x244]
cmp dword [ebp - 0x22c], 0x10
lea eax, [ecx + esi]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x240]
cmovae eax, dword [ebp - 0x240]
add esi, eax
push esi
call fcn.00409140
mov eax, dword [ebp - 0x250]
add esp, 0xc
mov ecx, dword [ebp - 0x248]
mov byte [esi + eax], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403a47
mov byte [ebp - 0x248], 0
push dword [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x240]
call fcn.00402640
mov ecx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x24c]
cmp eax, 0x10
jb 0x403a7d
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x403a73
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b80
push edx
push ecx
call fcn.00407d33
add esp, 8
mov edx, dword [ebp - 0x264]
cmp edx, 0x10
jb 0x403ab7
mov ecx, dword [ebp - 0x278]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403aad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b80
push edx
push ecx
call fcn.00407d33
add esp, 8
cmp dword [ebp - 0x22c], 0x10
lea eax, [ebp - 0x240]
push 0
cmovae eax, dword [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x403b30
call esi
cmp eax, 0xb7
je 0x403b30
mov edx, dword [ebp - 0x22c]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
cmp edx, 0x10
jb 0x403b5b
mov ecx, dword [ebp - 0x240]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403b24
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b85
push edx
push ecx
call fcn.00407d33
add esp, 8
jmp 0x403b5b
movups xmm0, xmmword [ebp - 0x240]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x230]
movq qword [edi + 0x10], xmm0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00407af3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040c1a7
call fcn.0040c1a7
call fcn.0040c1a7
int3