Function at 0x798a88
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aaa81
mov eax, dword fs:[0]
push eax
sub esp, 0x96c
mov eax, dword [0x4e3a40]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - reloc.MSVCRT.dll_strncpy], eax
mov eax, dword [ebp + 0xc]
push 1
mov esi, edx
mov dword [ebp - reloc.MSVCRT.dll_strncpy], ecx
push ebx
lea ecx, reloc.MSVCRT.dll_strncpy
mov dword [ebp - reloc.MSVCRT.dll_strncpy], ebx
mov dword [ebp - reloc.MSVCRT.dll_strncpy], ebx
mov dword [ebp - reloc.MSVCRT.dll_strncpy], esi
mov dword [ebp - reloc.MSVCRT.dll_strncpy], eax
call fcn.00801032
mov dword [ebp - 4], ebx
mov dword [ebp - reloc.MSVCRT.dll_strncpy], ebx
mov dword [ebp - reloc.MSVCRT.dll_strncpy], ebx
call fcn.007f9145
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x798b22
push 0x80004005
call fcn.00792ac8
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - reloc.MSVCRT.dll_strncpy], eax
mov byte [ebp - 4], 1
call fcn.007f9145
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x798b52
push 0x80004005
call fcn.00792ac8
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - reloc.MSVCRT.dll_strncpy], eax
push ebx
push 4
lea ecx, reloc.MSVCRT.dll_strncpy
push ecx
mov byte [ebp - 4], 2
push 2
lea ecx, reloc.MSVCRT.dll_strncpy
mov dword [ebp - reloc.MSVCRT.dll_strncpy], 0xbb8
call fcn.00800821
push ebx
push 4
lea edx, reloc.MSVCRT.dll_strncpy
push edx
push 3
lea ecx, reloc.MSVCRT.dll_strncpy
mov dword [ebp - reloc.MSVCRT.dll_strncpy], 3
call fcn.00800821
lea eax, reloc.MSVCRT.dll_strncpy
push eax
lea ecx, reloc.MSVCRT.dll_strncpy
push ecx
lea edx, reloc.MSVCRT.dll_strncpy
push edx
lea eax, reloc.MSVCRT.dll_strncpy
push eax
push esi
mov dword [ebp - reloc.MSVCRT.dll_strncpy], ebx
mov byte [ebp - 0x921], bl
mov byte [ebp - 4], 3
call fcn.008015e5
mov ecx, dword [ebp - reloc.MSVCRT.dll_strncpy]
mov edx, dword [ebp - reloc.MSVCRT.dll_strncpy]
push ebx
push ebx
push ecx
push edx
lea ecx, reloc.MSVCRT.dll_strncpy
call fcn.00801a1e
push 0x20000000
push ebx
push ebx
push 1
mov esi, eax
mov eax, dword [ebp - reloc.MSVCRT.dll_strncpy]
push ebx
push eax
push 1
mov ecx, esi
mov dword [ebp - reloc.MSVCRT.dll_strncpy], esi
call fcn.00801ad5
push ebx
push ebx
mov edi, eax
push ebx
push ebx
mov ecx, edi
mov dword [ebp - reloc.MSVCRT.dll_strncpy], edi
call fcn.0080159d
cmp eax, ebx
je 0x798d96
lea ecx, reloc.MSVCRT.dll_strncpy
push ecx
mov ecx, edi
call fcn.008008a9
cmp dword [ebp - reloc.MSVCRT.dll_strncpy], 0xc8
jne 0x798d96
mov esi, dword [ebp - reloc.MSVCRT.dll_strncpy]
push esi
call dword [fcn.004b440c]
push ebx
push ebx
push 0x104
lea edx, reloc.MSVCRT.dll_strncpy
push edx
push eax
push esi
push ebx
push ebx
call dword [fcn.004b43bc]
mov byte [ebp + eax - 0x120], bl
lea eax, reloc.MSVCRT.dll_strncpy
push 0x4bdc30
push eax
call fcn.0081f877
add esp, 8
cmp eax, ebx
mov dword [ebp - reloc.MSVCRT.dll_strncpy], eax
je 0x798d90
push 0x400
lea ecx, reloc.MSVCRT.dll_strncpy
push ebx
push ecx
call fcn.008214e8
add esp, 0xc
push ebx
lea edx, reloc.MSVCRT.dll_strncpy
push edx
lea eax, reloc.MSVCRT.dll_strncpy
push eax
push 5
mov ecx, edi
mov dword [ebp - reloc.MSVCRT.dll_strncpy], 0x400
call fcn.0080088d
cmp eax, ebx
je 0x798d81
lea ecx, reloc.MSVCRT.dll_strncpy
push ecx
call fcn.0081ee72
mov edx, dword [edi]
mov edx, dword [edx + 0x34]
add esp, 4
mov dword [ebp - reloc.MSVCRT.dll_strncpy], eax
push 0x400
lea eax, reloc.MSVCRT.dll_strncpy
xor esi, esi
push eax
mov ecx, edi
call edx
cmp eax, ebx
jbe 0x798d66
mov ecx, dword [ebp - reloc.MSVCRT.dll_strncpy]
push ecx
push eax
lea edx, reloc.MSVCRT.dll_strncpy
push 1
push edx
call fcn.0081f9a4
add esi, eax
mov eax, dword [ebp - reloc.MSVCRT.dll_strncpy]
add esp, 0x10
cmp eax, ebx
je 0x798d53
mov ecx, dword [ebp - reloc.MSVCRT.dll_strncpy]
lea edx, reloc.MSVCRT.dll_strncpy
push edx
mov dword [ebp - reloc.MSVCRT.dll_strncpy], esi
mov dword [ebp - reloc.MSVCRT.dll_strncpy], ecx
call eax
cmp al, bl
je 0x798d66
mov eax, dword [edi]
mov edx, dword [eax + 0x34]
push 0x400
lea ecx, reloc.MSVCRT.dll_strncpy
push ecx
jmp 0x798d07
mov eax, dword [ebp - reloc.MSVCRT.dll_strncpy]
cmp eax, esi
jne 0x798d7b
cmp eax, ebx
mov byte [ebp - 0x921], 1
ja 0x798d81
mov byte [ebp - 0x921], bl
mov eax, dword [ebp - reloc.MSVCRT.dll_strncpy]
push eax
call fcn.0081faa4
add esp, 4
mov esi, dword [ebp - reloc.MSVCRT.dll_strncpy]
mov dword [ebp - 4], 2
jmp 0x798db3
mov eax, dword [ebp - reloc.MSVCRT.dll_strncpy]
cmp eax, ebx
je 0x798dc6
push eax
call fcn.007f7cd4
add esp, 4
cmp edi, ebx
je 0x798dde
mov edx, dword [edi]
mov eax, dword [edx + 0x4c]
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 1
mov ecx, edi
call eax
cmp esi, ebx
je 0x798df6
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
lea ecx, reloc.MSVCRT.dll_strncpy
call fcn.00801673
mov byte [ebp - 4], 1
mov eax, dword [ebp - reloc.MSVCRT.dll_strncpy]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.MSVCRT.dll_strncpy
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x798e27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - reloc.MSVCRT.dll_strncpy]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.MSVCRT.dll_strncpy
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x798e4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, reloc.MSVCRT.dll_strncpy
mov dword [ebp - 4], reloc.MSVCRT.dll_strncpy
call fcn.008016f8
mov al, byte [ebp - 0x921]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0081e2f5
mov esp, ebp
pop ebp
ret