Function at 0x6ac418b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xbc
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [esp + 4], ecx
mov dword [esp], esi
call dword [eax + 0x7c]
mov ebx, eax
mov eax, dword [esi]
sub esp, 8
mov dword [esp + 0xc], 0x6ac54064
mov dword [esp + 8], 0x6ac54085
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [eax + 0x178]
sub esp, 0x10
test eax, eax
je 0x6ac41c01
mov edx, dword [esi]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [edx + 0x1b4]
mov eax, dword [esi]
sub esp, 0x10
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [eax + 0x5c]
mov eax, dword [esi]
mov edx, dword [ebp + 0x10]
sub esp, 8
mov dword [esp + 4], edx
mov dword [esp + 8], 0
mov dword [esp], esi
call dword [eax + 0x2a4]
sub esp, 0xc
mov ebx, eax
mov dword [esp + 8], eax
lea eax, [ebp - 0x68]
mov dword [esp + 4], str.open:_locking_worked_for__s_n
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
mov edi, dword [0x6ac59024]
test edi, edi
jne 0x6ac41980
jmp 0x6ac41a50
mov edi, dword [edi + 0x404]
test edi, edi
je 0x6ac41a50
mov dword [esp + 4], ebx
mov dword [esp], edi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x6ac41972
mov eax, dword [edi + 0x400]
mov dword [ebp - 0xac], eax
mov eax, dword [edi + 0x408]
test eax, eax
je 0x6ac41be8
mov ecx, dword [edi + 0x404]
test ecx, ecx
je 0x6ac41b48
mov dword [eax + 0x404], ecx
mov ecx, dword [edi + 0x404]
mov dword [ecx + 0x408], eax
mov dword [esp], edi
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x6ac41a50
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1a
mov dword [esp + 4], 1
mov dword [esp], str.open:_port_is_open_already
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov edi, dword [ebp - 0xac]
mov eax, dword [ebp + 0xc]
mov dword [esp], esi
mov dword [esp + 8], edi
mov dword [esp + 4], eax
call fcn.6ac41620
mov eax, dword [esi]
mov edx, dword [ebp + 0x10]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 4], edx
call dword [eax + 0x2a8]
mov eax, edi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
call sub.msvcrt.dll__errno
cmp dword [eax], 4
jne 0x6ac41b57
mov dword [esp + 4], 0x106
mov dword [esp], ebx
call fcn.6ac4bd40
test eax, eax
js 0x6ac41a42
mov edi, eax
lea eax, [ebp - 0xa4]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6ac4b3d0
test eax, eax
js 0x6ac41b57
lea eax, [ebp - 0xa4]
mov dword [esp + 4], 0xd
mov dword [esp], eax
mov dword [ebp - 0xa4], 0x10
mov dword [ebp - 0x98], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0x8b0
mov byte [ebp - 0x8e], 0
mov byte [ebp - 0x8f], 0
call fcn.6ac4ab20
test eax, eax
js 0x6ac41b57
lea eax, [ebp - 0xa4]
mov dword [esp + 4], 0xd
mov dword [esp], eax
call fcn.6ac4aab0
test eax, eax
js 0x6ac41b57
lea eax, [ebp - 0xa4]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.6ac4b7c0
test eax, eax
js 0x6ac41b57
mov eax, dword [esi]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 4], ecx
call dword [eax + 0x2a8]
lea eax, [ebp - 0x68]
sub esp, 0xc
mov dword [esp + 8], edi
mov dword [esp + 4], str.open:_fd_returned_is__i_n
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov dword [eax + 0x404], 0
jmp 0x6ac419ca
mov eax, dword [esi]
mov edx, dword [ebp + 0x10]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 4], edx
call dword [eax + 0x2a8]
sub esp, 0xc
call sub.msvcrt.dll__errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov edi, eax
mov eax, dword [esi]
mov dword [esp + 4], str.gnu_io_PortInUseException
mov dword [esp], esi
call dword [eax + 0x18]
sub esp, 8
test eax, eax
mov ebx, eax
je 0x6ac41c19
mov dword [esp + 8], edi
lea edi, [ebp - 0xa4]
mov dword [esp + 0xc], str.open
mov dword [esp + 4], str._s_in__s
mov dword [esp], edi
call sub.msvcrt.dll_sprintf
mov eax, dword [esi]
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [eax + 0x38]
sub esp, 0xc
mov eax, dword [esi]
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [eax + 0x5c]
mov eax, 0xffffffff
sub esp, 8
jmp 0x6ac41a38
mov eax, dword [edi + 0x404]
test eax, eax
je 0x6ac41c39
mov dword [eax + 0x408], 0
jmp 0x6ac419ca
mov eax, dword [esi]
mov dword [esp], esi
call dword [eax + 0x40]
mov eax, dword [esi]
sub esp, 4
mov dword [esp], esi
call dword [eax + 0x44]
sub esp, 4
jmp 0x6ac41bcf
mov eax, dword [esi]
mov dword [esp], esi
call dword [eax + 0x40]
mov eax, dword [esi]
sub esp, 4
mov dword [esp], esi
call dword [eax + 0x44]
mov eax, 0xffffffff
sub esp, 4
jmp 0x6ac41a38
mov dword [esp], edi
call sub.msvcrt.dll_free
mov dword [0x6ac59024], 0
jmp 0x6ac419d2