Function at 0x427000
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov eax, 0x4318
call fcn.0043c1d0
mov eax, dword [0x4630b0]
xor eax, esp
mov dword [esp + 0x4314], eax
mov eax, dword [esp + 0x4320]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4330]
test esi, esi
push edi
mov dword [esp + 0x10], esi
mov byte [esp + 0x220], 0
mov byte [esp + 0x11c], 0
jne 0x427071
mov esi, 1
mov edi, dword [esp + 0x10]
test edi, edi
je 0x427056
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x4324]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043b3fc
add esp, 0x4318
ret
test eax, eax
je 0x427092
push 0
push 0
lea ecx, [esp + 0x124]
push ecx
lea edx, [esp + 0x22c]
push edx
push eax
call fcn.0043d3fc
add esp, 0x14
mov eax, dword [esp + 0x432c]
mov ecx, dword [0x464bbc]
lea eax, [eax + eax*2]
shl eax, 5
mov ebx, dword [eax + ecx + 0x44]
mov ebp, dword [eax + ecx + 0x48]
add eax, ecx
cmp byte [esp + 0x220], 0
je 0x4271ab
cmp byte [esp + 0x11c], 0
je 0x4271ab
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x220]
mov byte [esp + eax + 0x18], cl
add eax, 1
test cl, cl
jne 0x4270d0
lea eax, [esp + 0x11c]
mov edx, eax
jmp 0x4270f0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4270f0
lea edi, [esp + 0x18]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x427102
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x427123
sub eax, edx
cmp byte [esp + eax + 0x17], 0x5c
je 0x427174
lea eax, [esp + 0x18]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x427140
sub eax, edx
cmp byte [esp + eax + 0x17], 0x2f
je 0x427174
lea edi, [esp + 0x18]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x427160
mov dx, word [0x4536b0]
mov word [edi], dx
mov esi, dword [esp + 0x10]
push esi
push 0
push 0x453740
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edx, dword [0x460004]
push 0
push ebx
push edx
call fcn.0040a650
add esp, 0xc
cmp eax, ebx
je 0x4271bd
mov esi, 2
jmp 0x427047
lea eax, [esp + 0x18]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x427178
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4271e7
mov esi, 3
jmp 0x42704f
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ecx]
cmp ebp, 0x4000
jle 0x4271ff
mov esi, 0x4000
jmp 0x427205
test ebp, ebp
mov esi, ebp
je 0x427256
mov ecx, dword [0x460004]
push esi
lea eax, [esp + 0x328]
push eax
push ecx
call fcn.0040a670
add esp, 0xc
cmp eax, esi
jne 0x427242
push 0
lea edx, [esp + 0x18]
push edx
push esi
lea eax, [esp + 0x330]
push eax
push edi
call ebx
test eax, eax
je 0x42724c
cmp dword [esp + 0x14], esi
jne 0x42724c
sub ebp, esi
jmp 0x4271f0
mov esi, 4
jmp 0x42704b
mov esi, 5
jmp 0x42704b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x10]
push 2
push edi
call fcn.0040a5e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x42727c
mov eax, 6
jmp 0x427058
push 0x4000
lea ecx, [esp + 0x328]
push 0
push ecx
call fcn.0043b0e0
push 0x4000
lea edx, [esp + 0x334]
push edx
push esi
call fcn.0040a670
add esp, 0x18
cmp eax, 0xffffffff
jne 0x4272b5
mov eax, 7
jmp 0x427058
push 0
push 0
push esi
call fcn.0040a650
push esi
call fcn.0040a630
add esp, 0x10
cmp byte [esp + 0x324], 0x50
jne 0x4272f8
cmp byte [esp + 0x325], 0x4b
jne 0x4272f8
lea eax, [esp + 0x18]
push eax
push edi
call fcn.004297a0
add esp, 8
test eax, eax
je 0x4272f8
mov eax, 8
jmp 0x427058
xor eax, eax
jmp 0x427058