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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437b29
mov eax, dword fs:[0]
push eax
sub esp, 0x680
mov eax, dword [0x448664]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x628]
push eax
mov edi, ecx
push 0x104
mov dword [ebp - 0x68c], edi
mov ebx, edx
mov dword [ebp - 0x688], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 1
lea ecx, [ebp - 0x684]
push ecx
push ebx
xor eax, eax
mov dword [ebp - 0x684], 0x3f
call fcn.004018f0
xor edx, edx
push edx
mov esi, eax
push ebx
or eax, 0xffffffff
lea ecx, [ebp - 0x660]
mov dword [ebp - 0x64c], 7
mov dword [ebp - 0x650], 0
mov word [ebp - 0x660], dx
call fcn.004017f0
mov dword [ebp - 4], 1
test esi, esi
jle 0x401370
push esi
lea eax, [ebp - 0x644]
push eax
xor ecx, ecx
mov edx, ebx
call fcn.00401710
mov byte [ebp - 4], 2
mov edi, eax
lea esi, [ebp - 0x660]
call fcn.00401780
mov byte [ebp - 4], 1
mov esi, 8
cmp dword [ebp - 0x630], esi
jb 0x40134b
mov ecx, dword [ebp - 0x644]
push ecx
call fcn.0041d491
add esp, 4
mov edi, dword [ebp - 0x68c]
xor edx, edx
mov dword [ebp - 0x630], 7
mov dword [ebp - 0x634], 0
mov word [ebp - 0x644], dx
jmp 0x401375
mov esi, 8
mov ecx, dword [ebp - 0x650]
push 0xffffffffffffffff
lea eax, [ebp - 0x644]
add ecx, 0xfffffffc
push eax
lea edx, [ebp - 0x660]
call fcn.00401710
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], esi
jb 0x40139d
mov eax, dword [eax]
push str..exe
push eax
call fcn.0041d9e7
add esp, 8
test eax, eax
sete byte [ebp - 0x67d]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x630], esi
jb 0x4013cf
mov ecx, dword [ebp - 0x644]
push ecx
call fcn.0041d491
add esp, 4
xor edx, edx
xor esi, esi
mov dword [ebp - 0x630], 7
mov dword [ebp - 0x634], esi
mov word [ebp - 0x644], dx
cmp byte [ebp - 0x67d], dl
je 0x4015ab
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x218], ax
call fcn.00422080
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x43d54c
lea edx, [ebp - 0x628]
push edx
lea eax, [ebp - 0x218]
push str._s_s_d_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push esi
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edx, edx
lea eax, [ebp - 0x218]
mov word [ebp - 0x644], dx
mov dword [ebp - 0x630], 7
mov dword [ebp - 0x634], esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x401470
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x644]
call fcn.00401b60
mov byte [ebp - 4], 4
lea eax, [ebp - 0x684]
push eax
push ebx
mov edi, 1
mov dword [ebp - 0x684], 0x2f
call fcn.004019b0
push 0xffffffffffffffff
lea edx, [ebp - 0x67c]
push edx
lea ecx, [eax + 1]
lea edx, [ebp - 0x660]
call fcn.00401710
mov byte [ebp - 4], 5
xor edi, edi
push edi
push eax
or eax, 0xffffffff
call fcn.00401a70
mov byte [ebp - 4], 4
mov ebx, 8
cmp dword [ebp - 0x668], ebx
jb 0x4014f8
mov eax, dword [ebp - 0x67c]
push eax
call fcn.0041d491
add esp, 4
mov esi, dword [ebp - 0x68c]
mov eax, 7
mov dword [esi + 0x10], edi
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x66c], edi
mov dword [esi + 0x14], eax
lea edi, [ebp - 0x644]
mov dword [ebp - 0x668], eax
mov word [ebp - 0x67c], cx
mov word [esi], dx
call fcn.00401780
mov dword [ebp - 0x688], 1
mov byte [ebp - 4], 1
cmp dword [ebp - 0x630], ebx
jb 0x401553
mov eax, dword [ebp - 0x644]
push eax
call fcn.0041d491
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x630], edi
mov dword [ebp - 0x634], 0
mov word [ebp - 0x644], cx
mov byte [ebp - 4], cl
cmp dword [ebp - 0x64c], ebx
jb 0x40158b
mov edx, dword [ebp - 0x660]
push edx
call fcn.0041d491
add esp, 4
xor eax, eax
mov dword [ebp - 0x64c], edi
mov dword [ebp - 0x650], 0
mov word [ebp - 0x660], ax
mov eax, esi
jmp 0x401642
lea ecx, [ebp - 0x420]
push ecx
push esi
push 0x43d54c
lea edx, [ebp - 0x628]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
mov word [edi], ax
lea eax, [ebp - 0x420]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4015e0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x420]
mov esi, edi
call fcn.00401b60
mov dword [ebp - 0x688], 1
mov byte [ebp - 4], 0
cmp dword [ebp - 0x64c], 8
jb 0x401623
mov ecx, dword [ebp - 0x660]
push ecx
call fcn.0041d491
add esp, 4
xor edx, edx
mov dword [ebp - 0x64c], 7
mov dword [ebp - 0x650], 0
mov word [ebp - 0x660], dx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041cfa8
mov esp, ebp
pop ebp
ret