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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x42b21c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x214], eax
lea ecx, [ebp + 8]
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x21c], 0
cmp dword [ebp + 8], 0
je 0x401d25
mov edx, dword [ebp + 8]
push edx
call fcn.00410000
add esp, 4
test eax, eax
jne 0x401d2a
jmp 0x402202
mov eax, dword [ebp - 0x210]
add eax, 8
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x210]
cmp dword [ecx], 0
je 0x40210b
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov dword [ebp - 0x280], eax
mov ecx, dword [ebp - 0x210]
add ecx, 4
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov dword [ebp - 0x27c], eax
mov ecx, dword [ebp - 0x210]
add ecx, 4
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov dword [ebp - 0x278], eax
mov ecx, dword [ebp - 0x210]
add ecx, 4
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov dword [ebp - 0x274], eax
mov ecx, dword [ebp - 0x210]
add ecx, 4
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov dword [ebp - 0x270], eax
mov ecx, dword [ebp - 0x210]
add ecx, 4
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov dword [ebp - 0x26c], eax
mov ecx, dword [ebp - 0x210]
add ecx, 4
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x210]
add ecx, 4
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov dword [ebp - 0x264], eax
mov ecx, dword [ebp - 0x210]
add ecx, 4
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x210]
add ecx, 4
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov dword [ebp - 0x25c], eax
mov ecx, dword [ebp - 0x210]
add ecx, 4
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x210]
add ecx, 4
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp - 0x210]
add ecx, 4
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp - 0x210]
add ecx, 4
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov dword [ebp - 0x24c], eax
mov ecx, dword [ebp - 0x210]
add ecx, 4
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov dword [ebp - 0x248], eax
mov ecx, dword [ebp - 0x210]
add ecx, 4
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp - 0x210]
add ecx, 4
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov dword [ebp - 0x240], eax
mov ecx, dword [ebp - 0x210]
add ecx, 4
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x210]
add ecx, 4
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x210]
add ecx, 4
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x210]
add ecx, 4
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov dword [ebp - 0x230], eax
mov ecx, dword [ebp - 0x210]
add ecx, 4
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x210]
add ecx, 4
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x210]
add ecx, 4
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp - 0x210]
add ecx, 4
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x210]
add ecx, 4
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00410000
add esp, 4
add eax, 0xc8
push eax
call fcn.00401160
add esp, 4
mov dword [ebp - 0x214], eax
push 0
mov eax, dword [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x224]
push ecx
mov edx, dword [ebp - 0x228]
push edx
mov eax, dword [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x234]
push edx
mov eax, dword [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x240]
push edx
mov eax, dword [ebp - 0x244]
push eax
mov ecx, dword [ebp - 0x248]
push ecx
mov edx, dword [ebp - 0x24c]
push edx
mov eax, dword [ebp - 0x250]
push eax
mov ecx, dword [ebp - 0x254]
push ecx
mov edx, dword [ebp - 0x258]
push edx
mov eax, dword [ebp - 0x25c]
push eax
mov ecx, dword [ebp - 0x260]
push ecx
mov edx, dword [ebp - 0x264]
push edx
mov eax, dword [ebp - 0x268]
push eax
mov ecx, dword [ebp - 0x26c]
push ecx
mov edx, dword [ebp - 0x270]
push edx
mov eax, dword [ebp - 0x274]
push eax
mov ecx, dword [ebp - 0x278]
push ecx
mov edx, dword [ebp - 0x27c]
push edx
mov eax, dword [ebp - 0x280]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x214]
push edx
call fcn.004012e0
add esp, 0x70
mov dword [ebp - 0x21c], 1
mov dword [ebp + 0xc], 0
push str.OF_DBG_ECHO_ERR_DISK_
call fcn.0040ab50
add esp, 4
mov dword [ebp - 0x284], eax
mov eax, dword [ebp - 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4021ce
lea ecx, [ebp - 0x108]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x20c]
push edx
push 0
push 0x421578
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x42158c
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004107a4
add esp, 8
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
je 0x4021ce
mov edx, dword [ebp - 0x218]
push edx
push 1
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.004109da
add esp, 0x10
mov edx, dword [ebp - 0x218]
push edx
call fcn.00410698
add esp, 4
mov eax, dword [ebp - 0x218]
push eax
call fcn.00410321
add esp, 4
cmp dword [ebp + 0xc], 1
jne 0x4021ea
push 0
push str.Onflow_Error
mov ecx, dword [ebp - 0x214]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [ebp - 0x21c], 0
je 0x402202
mov edx, dword [ebp - 0x214]
push edx
call fcn.004011a0
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040af7c
mov esp, ebp
pop ebp
ret