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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb699
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x4e83c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 0x10
cmovae eax, dword [ebp + 0xc]
mov dword [ebp - 0x27c], eax
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x402bed
mov edx, str.Err_get_temp_path.
mov ecx, 0x4e9628
call fcn.00406610
push eax
call fcn.004068b0
add esp, 4
mov esi, 1
jmp 0x402fdd
xorps xmm0, xmm0
mov dword [ebp - 0x23c], 0
lea esi, [ebp - 0x218]
mov dword [ebp - 0x228], 0
movups xmmword [ebp - 0x238], xmm0
mov dword [ebp - 0x224], 0
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x402c20
sub esi, ecx
sar esi, 1
cmp esi, 0x7ffffffe
ja 0x403017
lea eax, [ebp - 0x21d]
push 8
mov dword [ebp - 0x280], eax
call fcn.00462230
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x284], eax
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x23c], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x224], 7
cmp esi, 8
jae 0x402cab
lea eax, [esi + esi]
mov dword [ebp - 0x228], esi
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00464860
add esp, 0xc
xor eax, eax
mov word [ebp + esi*2 - 0x238], ax
jmp 0x402d05
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x402d7e
mov dword [ebp - 0x21c], bind
mov eax, bind
add eax, eax
push eax
call fcn.00408150
mov edi, eax
mov dword [ebp - 0x228], esi
mov eax, dword [ebp - 0x21c]
add esi, esi
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x218]
push esi
push eax
push edi
mov dword [ebp - 0x238], edi
call fcn.00464860
add esp, 0x10
xor eax, eax
mov word [edi + esi], ax
push str.scrypt
lea edx, [ebp - 0x23c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x274]
call fcn.00406950
add esp, 4
mov byte [ebp - 4], 3
lea eax, [ebp - 0x270]
cmp dword [ebp - 0x25c], 8
push 0
cmovae eax, dword [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402d9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402d9f
push eax
mov edx, str.Err_create_dir_for_scrypt:
mov ecx, 0x4e9628
call fcn.00406610
mov ecx, eax
call fcn.00403f60
push eax
call fcn.004068b0
add esp, 4
mov esi, 1
jmp 0x402fc7
mov ecx, 0xa
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x21c], eax
inc eax
cmp eax, 0x7fffffff
ja 0x40301c
jmp 0x402cca
push str.dscrypt.exe
lea edx, [ebp - 0x274]
lea ecx, [ebp - 0x258]
call fcn.00406950
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x254]
mov eax, dword [ebp - 0x244]
sub esp, 0xc
cmp dword [ebp - 0x240], 8
mov esi, esp
cmovae ecx, dword [ebp - 0x254]
push 3
mov dword [esi], 0
mov dword [esi + 4], 0
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x21c]
mov dword [esi + 8], eax
call fcn.0045d1b0
mov edi, dword [ebp - 0x258]
mov eax, dword [esi]
cmp eax, edi
je 0x402e1a
test eax, eax
je 0x402e0f
mov ecx, esi
call fcn.004018d0
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov dword [edi + 4], esi
mov dword [esi], edi
lea ecx, [ebp - 0x21c]
call fcn.0045d260
sub esp, 0xc
lea eax, [ebp - 0x254]
cmp dword [ebp - 0x240], 8
lea ecx, [ebp - 0x21c]
mov esi, esp
cmovae eax, dword [ebp - 0x254]
push 3
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], eax
call fcn.0045d1b0
mov edi, dword [ebp - 0x258]
mov eax, dword [esi]
cmp eax, edi
je 0x402e7d
test eax, eax
je 0x402e72
mov ecx, esi
call fcn.004018d0
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov dword [edi + 4], esi
mov dword [esi], edi
lea ecx, [ebp - 0x21c]
call fcn.0045d260
lea ecx, [ebp - 0x2a0]
call fcn.00406ad0
cmp dword [eax + 0x18], 0x10
lea esi, [eax + 4]
jb 0x402e9e
mov esi, dword [esi]
lea ecx, [ebp - 0x2a0]
call fcn.00405230
mov eax, dword [ebp - 0x2a0]
push 8
push eax
mov dword [ebp - 0x2a0], 0
call fcn.00462100
add esp, 8
call fcn.004082c0
mov edi, eax
test edi, edi
je 0x402fa2
push 0x4e3040
lea eax, [ebp - 0x278]
push esi
push eax
call fcn.0047bf40
add esp, 0xc
test eax, eax
jne 0x402f7a
push dword [ebp - 0x27c]
push 0x2712
push edi
call fcn.0040cbc0
push 0x402a20
push 0x4e2b
push edi
call fcn.0040cbc0
push dword [ebp - 0x278]
push 0x2711
push edi
call fcn.0040cbc0
push edi
call fcn.00408320
add esp, 0x28
test eax, eax
je 0x402f46
push eax
call fcn.00408cd0
add esp, 4
mov esi, eax
mov edx, str.Err_download_file:
mov ecx, 0x4e9628
jmp 0x402f50
mov edx, str.Download_ok:
mov ecx, 0x4e9530
call fcn.00406610
mov edx, esi
mov ecx, eax
call fcn.00406610
push eax
call fcn.004068b0
push dword [ebp - 0x278]
call fcn.0046a820
add esp, 8
push edi
call fcn.004082a0
jmp 0x402fb7
push eax
mov edx, str.Err_write_file
mov ecx, 0x4e9628
call fcn.00406610
mov ecx, eax
call fcn.00404100
push eax
call fcn.004068b0
add esp, 4
push edi
call fcn.004082a0
jmp 0x402fb7
mov edx, str.Err_init_libcurl.
mov ecx, 0x4e9628
call fcn.00406610
push eax
call fcn.004068b0
add esp, 4
lea ecx, [ebp - 0x258]
xor esi, esi
call fcn.004042c0
lea ecx, [ebp - 0x274]
call fcn.004042c0
lea ecx, [ebp - 0x23c]
call fcn.004042c0
lea ecx, [ebp + 8]
call fcn.00405230
mov ecx, dword [ebp + 8]
push 8
push ecx
mov dword [ebp + 8], 0
call fcn.00462100
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004620f0
mov esp, ebp
pop ebp
ret
call fcn.004019b0
call fcn.00401830
int3