Function at 0x439818
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
mov eax, dword [0x7df9ec]
test eax, eax
je 0x43994e
mov edx, dword [ebp + 0xc]
imul edx, dword [ebp + 0x10]
test edx, edx
jns 0x43983f
add edx, 0x7ff
sar edx, 0xb
mov dword [ebp - 0xc], edx
mov ecx, dword [0x6fb3a0]
cmp ecx, 2
jne 0x439929
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0x24
jmp 0x43990c
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
jl 0x4398c2
mov eax, dword [0x6f88f8]
mov edx, dword [ebp - 0x14]
add eax, edx
push eax
push dword [ebp - 0x10]
push 0x8685f8
mov ecx, dword [ebp - 0x14]
shl ecx, 0xb
mov eax, dword [ebp + 8]
add ecx, eax
push ecx
call fcn.00439648
add esp, 0x10
push dword [ebp - 0x10]
push 0x8685f8
call fcn.004f1b6c
add esp, 8
test eax, eax
jne 0x4398b4
mov dword [0x6fb15c], 1
mov edx, dword [ebp - 0x10]
sub dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0x10]
add dword [ebp - 0x14], ecx
jmp 0x43990c
mov eax, dword [0x6f88f8]
mov edx, dword [ebp - 0x14]
add eax, edx
push eax
push dword [ebp - 0xc]
push 0x8685f8
mov ecx, dword [ebp - 0x14]
shl ecx, 0xb
mov eax, dword [ebp + 8]
add ecx, eax
push ecx
call fcn.00439648
add esp, 0x10
push dword [ebp - 0xc]
push 0x8685f8
call fcn.004f1b6c
add esp, 8
test eax, eax
jne 0x439907
mov dword [0x6fb15c], 1
xor edx, edx
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jle 0x439e02
mov eax, dword [0x6fb15c]
test eax, eax
je 0x439865
jmp 0x439e02
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004f1b6c
add esp, 8
test eax, eax
jne 0x439e02
mov dword [0x6fb15c], 1
jmp 0x439e02
mov edx, dword [0x6fb2b0]
test edx, edx
je 0x439b2b
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
test ecx, ecx
jns 0x43996d
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 0x439ab7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
cmp ecx, eax
jl 0x439a28
mov edx, dword [0x6fb3a0]
cmp edx, 2
jne 0x4399cd
mov ecx, dword [0x6f88f8]
mov eax, dword [ebp - 0x14]
add ecx, eax
push ecx
push dword [ebp - 0x10]
push 0x8685f8
mov edx, dword [ebp - 0x14]
shl edx, 0xb
mov ecx, dword [ebp + 8]
add edx, ecx
push edx
call fcn.00439648
add esp, 0x10
jmp 0x4399f4
mov eax, dword [0x6f88f8]
mov edx, dword [ebp - 0x14]
add eax, edx
push eax
push dword [ebp - 0x10]
push 0x8685f8
mov ecx, dword [ebp - 0x14]
shl ecx, 0xb
mov eax, dword [ebp + 8]
add ecx, eax
push ecx
call fcn.004395c0
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 0x8685f8
push dword [0x6fb3d4]
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 0x439aac
mov ecx, dword [0x6fb3a0]
cmp ecx, 2
jne 0x439a5c
mov eax, dword [0x6f88f8]
mov edx, dword [ebp - 0x14]
add eax, edx
push eax
push dword [ebp - 0xc]
push 0x8685f8
mov ecx, dword [ebp - 0x14]
shl ecx, 0xb
mov eax, dword [ebp + 8]
add ecx, eax
push ecx
call fcn.00439648
add esp, 0x10
jmp 0x439a84
mov edx, dword [0x6f88f8]
mov ecx, dword [ebp - 0x14]
add edx, ecx
push edx
push dword [ebp - 0xc]
push 0x8685f8
mov eax, dword [ebp - 0x14]
shl eax, 0xb
mov edx, dword [ebp + 8]
add eax, edx
push eax
call fcn.004395c0
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 0x8685f8
push dword [0x6fb3d4]
call sub.KERNEL32.DLL_WriteFile
xor edx, edx
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jg 0x43998a
mov eax, dword [0x6fb398]
dec eax
jne 0x439ddf
mov edx, dword [ebp + 0xc]
imul edx, dword [ebp + 0x10]
test edx, edx
jns 0x439ad4
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.0066c62c
pop ecx
mov dword [ebp - 0x18], eax
push dword [ebp - 0xc]
push dword [0x6f88f8]
push dword [ebp - 0x18]
call fcn.004abf88
add esp, 0xc
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [ebp - 0x18]
push dword [0x6fb3d8]
call sub.KERNEL32.DLL_WriteFile
push dword [ebp - 0x18]
call fcn.0066c63c
pop ecx
jmp 0x439ddf
mov edx, dword [ebp + 0xc]
imul edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
mov ecx, dword [0x6fb170]
test ecx, ecx
je 0x439b55
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.005549fc
add esp, 8
mov dword [ebp - 8], eax
jmp 0x439ddf
mov eax, dword [0x6fb3a0]
cmp eax, 2
jne 0x439c75
mov edx, dword [0x6fb2b4]
test edx, edx
jne 0x439c75
mov ecx, dword [0x6ebcf4]
test ecx, ecx
je 0x439c75
mov eax, dword [ebp + 0xc]
imul dword [ebp + 0x10]
test eax, eax
jns 0x439b8e
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 0x439c57
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
cmp ecx, eax
jl 0x439c08
mov edx, dword [0x6f88f8]
mov ecx, dword [ebp - 0x14]
add edx, ecx
push edx
push dword [ebp - 0x10]
push 0x8685f8
mov eax, dword [ebp - 0x14]
shl eax, 0xb
mov edx, dword [ebp + 8]
add eax, edx
push eax
call fcn.00439648
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 0x8685f8
push dword [0x6fb3d4]
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 0x439c57
mov eax, dword [0x6f88f8]
mov edx, dword [ebp - 0x14]
add eax, edx
push eax
push dword [ebp - 0xc]
push 0x8685f8
mov ecx, dword [ebp - 0x14]
shl ecx, 0xb
mov eax, dword [ebp + 8]
add ecx, eax
push ecx
call fcn.00439648
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 0x8685f8
push dword [0x6fb3d4]
call sub.KERNEL32.DLL_WriteFile
xor eax, eax
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
test edx, edx
jle 0x439ddf
mov ecx, dword [0x6fb15c]
test ecx, ecx
je 0x439ba5
jmp 0x439ddf
mov eax, dword [0x6f88fc]
test eax, eax
je 0x439dc8
mov eax, dword [ebp - 4]
xor edx, edx
add eax, dword [0x6f8900]
adc edx, dword [0x6f8904]
cmp edx, dword [0x6f890c]
jne 0x439ca5
cmp eax, dword [0x6f8908]
ja 0x439cd4
jmp 0x439ca7
jg 0x439cd4
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 4]
push dword [ebp + 8]
push dword [0x6fb3d4]
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 4]
xor edx, edx
add dword [0x6f8900], eax
adc dword [0x6f8904], edx
jmp 0x439ddf
mov eax, dword [0x6f8908]
mov ecx, eax
mov eax, dword [0x6f8900]
sub ecx, eax
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
test edx, edx
jbe 0x439d19
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0x1c]
push dword [ebp + 8]
push dword [0x6fb3d4]
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
cmp eax, edx
jne 0x439de9
mov ecx, dword [ebp - 0x1c]
sub dword [ebp - 4], ecx
mov eax, dword [0x6fb3d4]
mov dword [ebp - 0x20], eax
inc dword [0x6f8910]
push dword [0x6f8910]
push dword [0x900208]
push 0x6f8a94
lea edx, [ebp - 0x128]
push edx
call fcn.006712b0
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 [0x6fb3d4], eax
mov eax, dword [0x6fb3d4]
cmp eax, 0xffffffff
jne 0x439d7c
mov edx, dword [ebp - 0x20]
mov dword [0x6fb3d4], edx
jmp 0x439de9
push dword [ebp - 0x20]
call sub.KERNEL32.DLL_CloseHandle
mov ecx, dword [ebp - 4]
test ecx, ecx
jbe 0x439db0
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 [0x6fb3d4]
call sub.KERNEL32.DLL_WriteFile
jmp 0x439db5
xor edx, edx
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [0x6f8900], eax
mov dword [0x6f8904], edx
jmp 0x439ddf
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 4]
push dword [ebp + 8]
push dword [0x6fb3d4]
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
cmp eax, edx
je 0x439e02
mov ecx, dword [0x6fb15c]
test ecx, ecx
jne 0x439e02
call fcn.00462b40
mov dword [0x6fb15c], 1
mov esp, ebp
pop ebp
ret