Function at 0x4396a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
mov eax, dword [0x7d2018]
test eax, eax
je 0x4397d6
mov edx, dword [ebp + 0xc]
imul edx, dword [ebp + 0x10]
test edx, edx
jns 0x4396c7
add edx, 0x7ff
sar edx, 0xb
mov dword [ebp - 0xc], edx
mov ecx, dword [0x6f6b64]
cmp ecx, 2
jne 0x4397b1
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0x24
jmp 0x439794
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
jl 0x43974a
mov eax, dword [0x6f4078]
mov edx, dword [ebp - 0x14]
add eax, edx
push eax
push dword [ebp - 0x10]
push 0x85ac24
mov ecx, dword [ebp - 0x14]
shl ecx, 0xb
mov eax, dword [ebp + 8]
add ecx, eax
push ecx
call fcn.004394d0
add esp, 0x10
push dword [ebp - 0x10]
push 0x85ac24
call fcn.004f1750
add esp, 8
test eax, eax
jne 0x43973c
mov dword [0x6f6920], 1
mov edx, dword [ebp - 0x10]
sub dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0x10]
add dword [ebp - 0x14], ecx
jmp 0x439794
mov eax, dword [0x6f4078]
mov edx, dword [ebp - 0x14]
add eax, edx
push eax
push dword [ebp - 0xc]
push 0x85ac24
mov ecx, dword [ebp - 0x14]
shl ecx, 0xb
mov eax, dword [ebp + 8]
add ecx, eax
push ecx
call fcn.004394d0
add esp, 0x10
push dword [ebp - 0xc]
push 0x85ac24
call fcn.004f1750
add esp, 8
test eax, eax
jne 0x43978f
mov dword [0x6f6920], 1
xor edx, edx
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jle 0x439c8a
mov eax, dword [0x6f6920]
test eax, eax
je 0x4396ed
jmp 0x439c8a
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004f1750
add esp, 8
test eax, eax
jne 0x439c8a
mov dword [0x6f6920], 1
jmp 0x439c8a
mov edx, dword [0x6f6a74]
test edx, edx
je 0x4399b3
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
test ecx, ecx
jns 0x4397f5
add ecx, 0x7ff
sar ecx, 0xb
mov dword [ebp - 0xc], ecx
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0x24
mov edx, dword [ebp - 0xc]
test edx, edx
jle 0x43993f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
cmp ecx, eax
jl 0x4398b0
mov edx, dword [0x6f6b64]
cmp edx, 2
jne 0x439855
mov ecx, dword [0x6f4078]
mov eax, dword [ebp - 0x14]
add ecx, eax
push ecx
push dword [ebp - 0x10]
push 0x85ac24
mov edx, dword [ebp - 0x14]
shl edx, 0xb
mov ecx, dword [ebp + 8]
add edx, ecx
push edx
call fcn.004394d0
add esp, 0x10
jmp 0x43987c
mov eax, dword [0x6f4078]
mov edx, dword [ebp - 0x14]
add eax, edx
push eax
push dword [ebp - 0x10]
push 0x85ac24
mov ecx, dword [ebp - 0x14]
shl ecx, 0xb
mov eax, dword [ebp + 8]
add ecx, eax
push ecx
call fcn.00439448
add esp, 0x10
imul edx, dword [ebp - 0x10], 0x930
mov dword [ebp - 4], edx
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 4]
push 0x85ac24
push dword [0x6f6b98]
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x10]
add dword [ebp - 0x14], edx
jmp 0x439934
mov ecx, dword [0x6f6b64]
cmp ecx, 2
jne 0x4398e4
mov eax, dword [0x6f4078]
mov edx, dword [ebp - 0x14]
add eax, edx
push eax
push dword [ebp - 0xc]
push 0x85ac24
mov ecx, dword [ebp - 0x14]
shl ecx, 0xb
mov eax, dword [ebp + 8]
add ecx, eax
push ecx
call fcn.004394d0
add esp, 0x10
jmp 0x43990c
mov edx, dword [0x6f4078]
mov ecx, dword [ebp - 0x14]
add edx, ecx
push edx
push dword [ebp - 0xc]
push 0x85ac24
mov eax, dword [ebp - 0x14]
shl eax, 0xb
mov edx, dword [ebp + 8]
add eax, edx
push eax
call fcn.00439448
add esp, 0x10
imul ecx, dword [ebp - 0xc], 0x930
mov dword [ebp - 4], ecx
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push 0x85ac24
push dword [0x6f6b98]
call sub.KERNEL32.DLL_WriteFile
xor edx, edx
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jg 0x439812
mov eax, dword [0x6f6b5c]
dec eax
jne 0x439c67
mov edx, dword [ebp + 0xc]
imul edx, dword [ebp + 0x10]
test edx, edx
jns 0x43995c
add edx, 0x7ff
sar edx, 0xb
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0xc]
shl ecx, 5
lea ecx, [ecx + ecx*2]
mov dword [ebp - 4], ecx
push dword [ebp - 4]
call fcn.0066c210
pop ecx
mov dword [ebp - 0x18], eax
push dword [ebp - 0xc]
push dword [0x6f4078]
push dword [ebp - 0x18]
call fcn.004abca0
add esp, 0xc
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [ebp - 0x18]
push dword [0x6f6b9c]
call sub.KERNEL32.DLL_WriteFile
push dword [ebp - 0x18]
call fcn.0066c220
pop ecx
jmp 0x439c67
mov edx, dword [ebp + 0xc]
imul edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
mov ecx, dword [0x6f6934]
test ecx, ecx
je 0x4399dd
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.005545e0
add esp, 8
mov dword [ebp - 8], eax
jmp 0x439c67
mov eax, dword [0x6f6b64]
cmp eax, 2
jne 0x439afd
mov edx, dword [0x6f6a78]
test edx, edx
jne 0x439afd
mov ecx, dword [0x6e742c]
test ecx, ecx
je 0x439afd
mov eax, dword [ebp + 0xc]
imul dword [ebp + 0x10]
test eax, eax
jns 0x439a16
add eax, 0x7ff
sar eax, 0xb
mov dword [ebp - 0xc], eax
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 0x24
jmp 0x439adf
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
cmp ecx, eax
jl 0x439a90
mov edx, dword [0x6f4078]
mov ecx, dword [ebp - 0x14]
add edx, ecx
push edx
push dword [ebp - 0x10]
push 0x85ac24
mov eax, dword [ebp - 0x14]
shl eax, 0xb
mov edx, dword [ebp + 8]
add eax, edx
push eax
call fcn.004394d0
add esp, 0x10
imul ecx, dword [ebp - 0x10], 0x930
mov dword [ebp - 4], ecx
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push 0x85ac24
push dword [0x6f6b98]
call sub.KERNEL32.DLL_WriteFile
mov edx, dword [ebp - 0x10]
sub dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0x10]
add dword [ebp - 0x14], ecx
jmp 0x439adf
mov eax, dword [0x6f4078]
mov edx, dword [ebp - 0x14]
add eax, edx
push eax
push dword [ebp - 0xc]
push 0x85ac24
mov ecx, dword [ebp - 0x14]
shl ecx, 0xb
mov eax, dword [ebp + 8]
add ecx, eax
push ecx
call fcn.004394d0
add esp, 0x10
imul edx, dword [ebp - 0xc], 0x930
mov dword [ebp - 4], edx
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 4]
push 0x85ac24
push dword [0x6f6b98]
call sub.KERNEL32.DLL_WriteFile
xor eax, eax
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
test edx, edx
jle 0x439c67
mov ecx, dword [0x6f6920]
test ecx, ecx
je 0x439a2d
jmp 0x439c67
mov eax, dword [0x6f407c]
test eax, eax
je 0x439c50
mov eax, dword [ebp - 4]
xor edx, edx
add eax, dword [0x6f4080]
adc edx, dword [0x6f4084]
cmp edx, dword [0x6f408c]
jne 0x439b2d
cmp eax, dword [0x6f4088]
ja 0x439b5c
jmp 0x439b2f
jg 0x439b5c
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 4]
push dword [ebp + 8]
push dword [0x6f6b98]
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 4]
xor edx, edx
add dword [0x6f4080], eax
adc dword [0x6f4084], edx
jmp 0x439c67
mov eax, dword [0x6f4088]
mov ecx, eax
mov eax, dword [0x6f4080]
sub ecx, eax
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
test edx, edx
jbe 0x439ba1
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0x1c]
push dword [ebp + 8]
push dword [0x6f6b98]
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
cmp eax, edx
jne 0x439c71
mov ecx, dword [ebp - 0x1c]
sub dword [ebp - 4], ecx
mov eax, dword [0x6f6b98]
mov dword [ebp - 0x20], eax
inc dword [0x6f4090]
push dword [0x6f4090]
push dword [0x8f2834]
push 0x6f4210
lea edx, [ebp - 0x128]
push edx
call fcn.00670e94
add esp, 0x10
push 0
push 0
push 2
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x128]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov dword [0x6f6b98], eax
mov eax, dword [0x6f6b98]
cmp eax, 0xffffffff
jne 0x439c04
mov edx, dword [ebp - 0x20]
mov dword [0x6f6b98], edx
jmp 0x439c71
push dword [ebp - 0x20]
call sub.KERNEL32.DLL_CloseHandle
mov ecx, dword [ebp - 4]
test ecx, ecx
jbe 0x439c38
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 4]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add ecx, eax
push ecx
push dword [0x6f6b98]
call sub.KERNEL32.DLL_WriteFile
jmp 0x439c3d
xor edx, edx
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [0x6f4080], eax
mov dword [0x6f4084], edx
jmp 0x439c67
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 4]
push dword [ebp + 8]
push dword [0x6f6b98]
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
cmp eax, edx
je 0x439c8a
mov ecx, dword [0x6f6920]
test ecx, ecx
jne 0x439c8a
call fcn.00462858
mov dword [0x6f6920], 1
mov esp, ebp
pop ebp
ret