Function at 0x4bacfd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
mov eax, dword [ebp + 8]
mov edx, dword [eax]
cmp edx, 3
jne 0x4bad3d
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
mov ecx, dword [ebp + 8]
add ecx, 0x124
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
jne 0x4bad43
xor eax, eax
jmp 0x4baf75
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x18]
push eax
push dword [ebp - 0x1c]
call fcn.004c5358
add esp, 8
test eax, eax
je 0x4baf48
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
cdq
push edx
push eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
dec eax
cdq
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x230]
adc edx, dword [ecx + 0x234]
call fcn.0067457f
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0x24
mov edx, dword [ebp - 0x14]
shl edx, 0xb
mov dword [ebp - 0x18], edx
xor ecx, ecx
mov dword [ebp - 0x10], ecx
jmp 0x4baf31
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp eax, edx
jl 0x4bae6f
push dword [ebp - 0x14]
push 0x848c24
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
call fcn.004c5cb8
add esp, 0x10
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0x18]
push 0x848c24
push dword [ebp + 0x10]
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 0x18]
cdq
add dword [0x826584], eax
adc dword [0x826588], edx
mov eax, dword [0x826584]
mov edx, dword [0x826588]
mov dword [ebp - 0x28], eax
sub edx, 0x80000000
mov dword [ebp - 0x24], edx
fild qword [ebp - 0x28]
fadd qword [0x4baf79]
mov eax, dword [0x82657c]
mov edx, dword [0x826580]
mov dword [ebp - 0x30], eax
sub edx, 0x80000000
mov dword [ebp - 0x2c], edx
fild qword [ebp - 0x30]
fadd qword [0x4baf79]
fdivp st(1)
add esp, 0xfffffff8
fstp qword [esp]
call fcn.004412e0
add esp, 8
mov ecx, dword [0x6f6920]
test ecx, ecx
je 0x4bae5e
mov eax, dword [ebp + 8]
mov edx, dword [eax]
cmp edx, 3
jne 0x4bae57
push dword [ebp - 0x1c]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4baf75
mov edx, dword [ebp - 0x14]
add dword [ebp - 0x10], edx
mov ecx, dword [ebp - 0x14]
sub dword [ebp - 0xc], ecx
jmp 0x4baf31
mov eax, dword [ebp - 0xc]
shl eax, 0xb
mov dword [ebp - 0x18], eax
push dword [ebp - 0xc]
push 0x848c24
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
call fcn.004c5cb8
add esp, 0x10
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 0x18]
push 0x848c24
push dword [ebp + 0x10]
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 0x18]
cdq
add dword [0x826584], eax
adc dword [0x826588], edx
mov eax, dword [0x826584]
mov edx, dword [0x826588]
mov dword [ebp - 0x38], eax
sub edx, 0x80000000
mov dword [ebp - 0x34], edx
fild qword [ebp - 0x38]
fadd qword [0x4baf79]
mov eax, dword [0x82657c]
mov edx, dword [0x826580]
mov dword [ebp - 0x40], eax
sub edx, 0x80000000
mov dword [ebp - 0x3c], edx
fild qword [ebp - 0x40]
fadd qword [0x4baf79]
fdivp st(1)
add esp, 0xfffffff8
fstp qword [esp]
call fcn.004412e0
add esp, 8
mov ecx, dword [0x6f6920]
test ecx, ecx
je 0x4baf26
mov eax, dword [ebp + 8]
mov edx, dword [eax]
cmp edx, 3
jne 0x4baf22
push dword [ebp - 0x1c]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4baf75
mov edx, dword [ebp - 0xc]
add dword [ebp - 0x10], edx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
test eax, eax
jle 0x4baf5e
mov edx, dword [0x6f6920]
test edx, edx
je 0x4bad9f
jmp 0x4baf5e
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
cmp eax, 3
jne 0x4baf5a
push dword [ebp - 0x1c]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4baf75
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
cmp ecx, 3
jne 0x4baf70
push dword [ebp - 0x1c]
call sub.KERNEL32.DLL_CloseHandle
mov eax, 1
mov esp, ebp
pop ebp
ret