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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fd74
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x42b060]
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
mov dword [ebp - 0x2ac], edx
mov edi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x2b4], 0
mov eax, dword [0x42dd78]
mov dword [ebp - 0x2b8], edi
test al, 1
jne 0x402790
or eax, 1
mov ecx, 0x42cbb0
mov dword [0x42dd78], eax
mov eax, dword [0x42cbb0]
call dword [eax + 0xc]
add eax, 0x10
push 0x4203a0
mov dword [0x42dd7c], eax
call fcn.004099fd
add esp, 4
mov eax, dword [0x42dd7c]
cmp dword [eax - 0xc], 0
jne 0x402a3d
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jle 0x402a3d
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4027c2
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, 0x42dd7c
call fcn.00405f40
push 0xb
push 0x42776c
mov ecx, 0x42dd7c
call fcn.004071d0
push 0
push dword [0x42dd7c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [0x42cbb0]
mov ecx, 0x42cbb0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2a4], eax
mov eax, str.Data_
mov dword [ebp - 4], 1
test eax, 0xffff0000
jne 0x402848
movzx esi, ax
mov ecx, esi
call fcn.004083c0
test eax, eax
je 0x402858
push esi
push eax
lea ecx, [ebp - 0x2a4]
call fcn.004072a0
jmp 0x402858
push str.Data_
lea ecx, [ebp - 0x2a4]
call fcn.00404a90
lea eax, [ebp - 0x2a4]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x2b0]
call fcn.00403690
add esp, 4
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp - 0x2b0]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4028a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [ebp - 0x2a4]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4028c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x42cbb0]
mov ecx, 0x42cbb0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2a4], eax
mov eax, str.DataApk
mov dword [ebp - 4], 3
test eax, 0xffff0000
jne 0x402909
movzx ebx, ax
mov ecx, ebx
call fcn.004083c0
test eax, eax
je 0x402919
push ebx
push eax
lea ecx, [ebp - 0x2a4]
call fcn.004072a0
jmp 0x402919
push str.DataApk
lea ecx, [ebp - 0x2a4]
call fcn.00404a90
lea eax, [ebp - 0x2a4]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0x2a8]
call fcn.00403690
add esp, 4
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp - 0x2a8]
mov ecx, esi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40295e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [ebp - 0x2a4]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402981
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x42cbb0]
mov ecx, 0x42cbb0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2a4], eax
mov eax, str.DataBin
mov dword [ebp - 4], 5
test eax, 0xffff0000
jne 0x4029c7
movzx ebx, ax
mov ecx, ebx
call fcn.004083c0
test eax, eax
je 0x4029d7
push ebx
push eax
lea ecx, [ebp - 0x2a4]
call fcn.004072a0
jmp 0x4029d7
push str.DataBin
lea ecx, [ebp - 0x2a4]
call fcn.00404a90
lea eax, [ebp - 0x2a4]
mov dword [ebp - 4], 6
push eax
lea ecx, [ebp - 0x2a8]
call fcn.00403690
add esp, 4
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp - 0x2a8]
mov ecx, esi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402a1c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2a4]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x402a3d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x2ac]
mov ecx, edi
call fcn.004037c0
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 0x29c]
push 3
push dword [edi]
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x2b4], 1
mov dword [ebp - 0x2a0], eax
call fcn.00405320
push dword [ebp - 0x2a0]
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
mov eax, dword [ebp - 0x2a0]
lea ecx, [ebp - 0x29c]
cmp eax, ecx
je 0x402a9e
push eax
call fcn.00409763
add esp, 4
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.00408e77
mov esp, ebp
pop ebp
ret