Function at 0x100089a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a8e50
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x100d65e8]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x100d65e8]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp dword [eax + 0x10], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
jne 0x100089ff
xor al, al
jmp 0x10008e30
cmp byte [ecx + 0xc], 0
je 0x100089f8
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], 0
mov byte [esp + 0x58], 0
mov dword [esp + 0xb0], 0
mov eax, dword [ecx + 4]
mov edi, dword [eax]
mov dword [esp + 0x10], edi
cmp edi, eax
je 0x10008be3
jmp 0x10008a50
mov eax, dword [edi + 0x28]
cmp dword [eax + 4], 0
je 0x10008b7d
lea ebx, [edi + 0x10]
push ebx
lea eax, [esp + 0x44]
push eax
call fcn.1000b6d0
mov byte [esp + 0xb0], 1
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x64]
call fcn.1000a350
mov byte [esp + 0xb0], 0
cmp dword [esp + 0x54], 0x10
jb 0x10008a9c
push dword [esp + 0x40]
call fcn.1007d9ed
add esp, 4
mov eax, dword [edi + 0x28]
mov dword [esp + 0x54], 0xf
mov esi, dword [eax]
mov eax, dword [ebx + 0x18]
mov esi, dword [esi]
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
cmp esi, dword [eax]
je 0x10008b79
mov edi, dword [esp + 0x14]
lea ecx, [esi + 0x10]
lea eax, [ecx + 0x18]
push eax
push ecx
lea eax, [esp + 0x78]
push eax
mov ecx, edi
call fcn.1000b840
mov byte [esp + 0xb0], 2
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x64]
call fcn.1000a350
mov byte [esp + 0xb0], 0
cmp dword [esp + 0x84], 0x10
jb 0x10008b0f
push dword [esp + 0x70]
call fcn.1007d9ed
add esp, 4
cmp byte [esi + 0xd], 0
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], 0
mov byte [esp + 0x70], 0
jne 0x10008b6a
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x10008b4f
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x10008b6a
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x10008b43
jmp 0x10008b6a
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10008b68
cmp esi, dword [eax + 8]
jne 0x10008b68
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10008b58
mov esi, eax
mov eax, dword [ebx + 0x18]
cmp esi, dword [eax]
jne 0x10008ac7
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp byte [edi + 0xd], 0
jne 0x10008bd6
mov eax, dword [edi + 8]
cmp byte [eax + 0xd], 0
jne 0x10008bb0
mov edi, eax
mov dword [esp + 0x10], edi
mov eax, dword [edi]
cmp byte [eax + 0xd], 0
jne 0x10008bd6
lea ebx, [ebx]
mov edi, eax
mov dword [esp + 0x10], edi
mov eax, dword [edi]
cmp byte [eax + 0xd], 0
je 0x10008ba0
jmp 0x10008bd6
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x10008bd0
lea esp, [esp]
cmp edi, dword [eax + 8]
jne 0x10008bd0
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10008bc0
mov edi, eax
mov dword [esp + 0x10], edi
cmp edi, dword [ecx + 4]
jne 0x10008a50
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.10001000
add esp, 8
mov byte [esp + 0xb0], 3
xor eax, eax
push eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
push 0x100bd6c4
lea ecx, [esp + 0x48]
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
call fcn.1000f9f0
mov byte [esp + 0xb0], 4
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.10033880
add esp, 0xc
mov byte [esp + 0xb0], 3
cmp dword [esp + 0x54], 8
jb 0x10008c70
push dword [esp + 0x40]
call fcn.1007d9ed
add esp, 4
xor eax, eax
cmp dword [ebx + 0x14], 8
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
jb 0x10008c8f
mov ebx, dword [ebx]
push ebx
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
test esi, esi
je 0x10008cda
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10008cda
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10008cda
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
jmp 0x10008dbc
push dword [esp + 0x1c]
lea eax, [esp + 0x74]
push eax
call fcn.100190c0
add esp, 8
mov byte [esp + 0xb0], 5
cmp dword [esp + 0x9c], 0x10
mov ecx, dword [esp + 0x98]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ebx, [esp + 0x88]
cmovae ebx, dword [esp + 0x88]
cmp dword [eax + 0x10], 0
mov dword [esp + 0x18], ecx
je 0x10008d75
cmp dword [eax + 0x14], 8
jb 0x10008d29
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10008d6f
push 0
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x20]
mov dword [esp + 0x28], 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x10008d75
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0xb0], 3
cmp dword [esp + 0x84], 8
jb 0x10008d93
push dword [esp + 0x70]
call fcn.1007d9ed
add esp, 4
xor eax, eax
push esi
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], 0
mov word [esp + 0x74], ax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call edi
mov bl, 1
mov byte [esp + 0xb0], 0
cmp dword [esp + 0x9c], 0x10
jb 0x10008ddd
push dword [esp + 0x88]
call fcn.1007d9ed
add esp, 4
mov dword [esp + 0x9c], 0xf
mov dword [esp + 0x98], 0
mov byte [esp + 0x88], 0
mov dword [esp + 0xb0], 0xffffffff
cmp dword [esp + 0x6c], 0x10
jb 0x10008e19
push dword [esp + 0x58]
call fcn.1007d9ed
add esp, 4
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], 0
mov byte [esp + 0x58], 0
mov al, bl
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.1007e654
mov esp, ebp
pop ebp
ret 8