Function at 0x6ac47d00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
mov edx, dword [0x6ac59020]
mov eax, dword [ebx + 0xa0]
cmp dword [ebx + 0x30], 1
mov esi, dword [ebx + 0x9c]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
je 0x6ac47ebb
lea eax, [ebx + 0x1c8]
test al, 1
mov edi, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 0x50
jne 0x6ac47fd0
test edi, 2
jne 0x6ac47ff0
mov ecx, dword [ebp - 0x2c]
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
test byte [ebp - 0x2c], 2
jne 0x6ac47f60
test byte [ebp - 0x2c], 1
jne 0x6ac47f50
test edx, edx
jne 0x6ac47d93
mov dword [0x6ac59020], ebx
mov dword [ebx + 0xb0], 0
mov dword [ebx + 0xb4], 0
jmp 0x6ac47db3
mov edx, eax
mov eax, dword [edx + 0xb0]
test eax, eax
jne 0x6ac47d91
mov dword [edx + 0xb0], ebx
mov dword [ebx + 0xb4], edx
mov dword [ebx + 0xb0], 0
lea edi, [ebx + 4]
mov edx, 0x2c
test edi, 1
jne 0x6ac48013
test edi, 2
jne 0x6ac48002
mov ecx, edx
xor eax, eax
shr ecx, 2
test dl, 2
rep stosd dword es:[edi], eax
je 0x6ac47dea
xor eax, eax
add edi, 2
mov word [edi - 2], ax
and edx, 1
je 0x6ac47df2
mov byte [edi], 0
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x1c4], 0
mov dword [esp + 0xc], 0x6ac54064
mov dword [esp + 8], 0x6ac54128
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.6ac46bd0
lea edx, [ebp - 0x1c]
mov dword [ebx], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0x5459
mov dword [esp], eax
call fcn.6ac4c4a0
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x90], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], 0x545d
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6ac4c4a0
not eax
shr eax, 0x1f
mov dword [ebx + 0x94], eax
lea eax, [ebx + 0x3c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5415
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6ac4c4a0
mov eax, dword [esi]
mov dword [esp + 0xc], str._IZ_Z
mov dword [esp + 8], str.sendEvent
mov edx, dword [ebx + 0xa4]
mov dword [esp], esi
mov dword [esp + 4], edx
call dword [eax + 0x84]
sub esp, 0x10
test eax, eax
mov dword [ebx + 0xa8], eax
je 0x6ac47ed3
mov eax, dword [ebx]
mov dword [ebx + 0xb8], 0
lea edx, [eax - 1]
cmp edx, 0x3e
jbe 0x6ac47f75
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x31
mov dword [esp + 4], 1
mov dword [esp], str.initialise_event_info_struct:_initialise_failed__n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx + 0xa4]
test eax, eax
je 0x6ac47f1a
mov edx, dword [ebx + 0x9c]
mov ecx, dword [edx]
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [ecx + 0x5c]
sub esp, 8
mov eax, dword [ebx + 0xb0]
test eax, eax
je 0x6ac48021
mov edx, dword [ebx + 0xb4]
test edx, edx
je 0x6ac47fb0
mov dword [edx + 0xb0], eax
mov eax, dword [ebx + 0xb0]
mov dword [eax + 0xb4], edx
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test edx, edx
mov byte [edi], 0
jne 0x6ac47d93
jmp 0x6ac47d75
xor eax, eax
add edi, 2
mov word [edi - 2], ax
test byte [ebp - 0x2c], 1
je 0x6ac47d71
jmp 0x6ac47f50
mov dword [ebx + 0xbc], eax
mov eax, 1
mov dword [ebx + 0xb8], 1
mov dword [ebx + 0x1bc], 0
mov dword [ebx + 0x1c0], 0x186a0
mov dword [ebx + 0x30], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [eax + 0xb4], 0
mov dword [0x6ac59020], eax
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [ebx + 0x1c8], 0
lea edi, [ebx + 0x1c9]
mov dword [ebp - 0x2c], 0x4f
jmp 0x6ac47d47
xor eax, eax
add edi, 2
mov word [edi - 2], ax
sub dword [ebp - 0x2c], 2
jmp 0x6ac47d53
xor eax, eax
add edi, 2
mov word [edi - 2], ax
sub edx, 2
jmp 0x6ac47dd3
mov byte [ebx + 4], 0
lea edi, [ebx + 5]
mov dl, 0x2b
jmp 0x6ac47dc7
mov eax, dword [ebx + 0xb4]
test eax, eax
je 0x6ac4803c
mov dword [eax + 0xb0], 0
xor eax, eax
jmp 0x6ac47f46
mov dword [0x6ac59020], 0
xor eax, eax
jmp 0x6ac47f46