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

Disassembly:
mov eax, 0x4318
call fcn.0043bea0
mov eax, dword [0x4630e0]
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 0x426e11
mov esi, 1
mov edi, dword [esp + 0x10]
test edi, edi
je 0x426df6
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.0043b76b
add esp, 0x4318
ret
test eax, eax
je 0x426e32
push 0
push 0
lea ecx, [esp + 0x124]
push ecx
lea edx, [esp + 0x22c]
push edx
push eax
call fcn.0043d0dc
add esp, 0x14
mov eax, dword [esp + 0x432c]
mov ecx, dword [0x464bfc]
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 0x426f4b
cmp byte [esp + 0x11c], 0
je 0x426f4b
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 0x426e70
lea eax, [esp + 0x11c]
mov edx, eax
jmp 0x426e90
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x426e90
lea edi, [esp + 0x18]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x426ea2
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 0x426ec3
sub eax, edx
cmp byte [esp + eax + 0x17], 0x5c
je 0x426f14
lea eax, [esp + 0x18]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x426ee0
sub eax, edx
cmp byte [esp + eax + 0x17], 0x2f
je 0x426f14
lea edi, [esp + 0x18]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x426f00
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.0040a3a0
add esp, 0xc
cmp eax, ebx
je 0x426f5d
mov esi, 2
jmp 0x426de7
lea eax, [esp + 0x18]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x426f18
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 0x426f87
mov esi, 3
jmp 0x426def
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ecx]
cmp ebp, 0x4000
jle 0x426f9f
mov esi, 0x4000
jmp 0x426fa5
test ebp, ebp
mov esi, ebp
je 0x426ff6
mov ecx, dword [0x460004]
push esi
lea eax, [esp + 0x328]
push eax
push ecx
call fcn.0040a3c0
add esp, 0xc
cmp eax, esi
jne 0x426fe2
push 0
lea edx, [esp + 0x18]
push edx
push esi
lea eax, [esp + 0x330]
push eax
push edi
call ebx
test eax, eax
je 0x426fec
cmp dword [esp + 0x14], esi
jne 0x426fec
sub ebp, esi
jmp 0x426f90
mov esi, 4
jmp 0x426deb
mov esi, 5
jmp 0x426deb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x10]
push 2
push edi
call fcn.0040a330
mov esi, eax
add esp, 8
test esi, esi
jne 0x42701c
mov eax, 6
jmp 0x426df8
push 0x4000
lea ecx, [esp + 0x328]
push 0
push ecx
call fcn.0043ae80
push 0x4000
lea edx, [esp + 0x334]
push edx
push esi
call fcn.0040a3c0
add esp, 0x18
cmp eax, 0xffffffff
jne 0x427055
mov eax, 7
jmp 0x426df8
push 0
push 0
push esi
call fcn.0040a3a0
push esi
call fcn.0040a380
add esp, 0x10
cmp byte [esp + 0x324], 0x50
jne 0x427098
cmp byte [esp + 0x325], 0x4b
jne 0x427098
lea eax, [esp + 0x18]
push eax
push edi
call fcn.00429540
add esp, 8
test eax, eax
je 0x427098
mov eax, 8
jmp 0x426df8
xor eax, eax
jmp 0x426df8