Function at 0x1105aee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1118209e
mov eax, dword fs:[0]
push eax
mov eax, 0x211c
call fcn.11164040
mov eax, dword [0x111ec774]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
xor eax, eax
mov esi, ecx
mov ecx, dword [ebp + 8]
mov edx, 0xa0
mov dword [ebp - 0x2120], eax
mov dword [ebp - 0x2128], ecx
mov byte [ebp - 0x110], 0
mov dword [ebp - 0x2124], eax
lea edi, [eax + 1]
mov dword [ebp - 0x211c], eax
mov dword [ebp - 0x2118], eax
mov dword [ebp - 0x2114], eax
mov dword [ebp - 0x2110], eax
mov dword [ebp - 0x210c], eax
mov dword [ebp - 0x2108], eax
mov dword [ebp - 0x2104], eax
mov dword [ebp - 0x2100], eax
mov byte [ebp - 0x20fc], al
mov word [ebp - 0x2120], dx
cmp ebx, eax
je 0x1105aff6
push 0x100
lea eax, [ebp - 0x110]
push eax
mov ecx, ebx
call fcn.1103ff60
mov dword [ebp - 0x2124], eax
test eax, eax
jne 0x1105afb7
push 0xff
mov ecx, ebx
call fcn.1103ff90
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.111650d0
add esp, 0xc
lea ecx, [ebp - 0x110]
mov eax, 0x111ee5a8
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1105afe2
test dl, dl
je 0x1105afde
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1105afe2
add eax, 2
add ecx, 2
test dl, dl
jne 0x1105afc2
xor eax, eax
jmp 0x1105afe7
sbb eax, eax
sbb eax, 0xffffffff
mov ecx, dword [ebp - 0x2128]
xor edx, edx
test eax, eax
sete dl
mov edi, edx
movzx eax, byte [ecx + 2]
dec eax
cmp eax, 5
ja case.0x1105b004.3
jmp dword [eax*4 + 0x1105b3d4]
cmp dword [ebp - 0x2124], 0
jne 0x1105b053
mov ecx, dword [ebx + 0xc]
push 0
push 0
push 0x111a0920
push 0x111a0f40
call fcn.1105e820
test eax, eax
je 0x1105b053
mov edx, dword [ebx]
mov edx, dword [edx + 0x44]
mov eax, 0xb
push 0
mov word [ebp - 0x2120], ax
push 0xf
lea eax, [ebp - 0x2120]
push eax
mov ecx, ebx
call edx
jmp case.0x1105b004.3
mov eax, dword [0x111ee6ac]
test eax, eax
je 0x1105b081
push 0
push eax
call dword [sym.imp.KeRneL32.DLl_WaitForSingleObject]
test eax, eax
mov eax, dword [0x111ee6ac]
jne 0x1105b081
push eax
call dword [sym.imp.KeRneL32.DLl_CloseHandle]
xor eax, eax
mov dword [0x111ee6ac], eax
mov byte [0x111ee5a8], al
cmp dword [esi + 4], 0
je 0x1105b1b4
test eax, eax
je 0x1105b1b4
push 0
test edi, edi
je 0x1105b165
mov edx, dword [ebx]
mov edx, dword [edx + 0x44]
push 0xf
lea eax, [ebp - 0x2120]
push eax
mov ecx, ebx
mov byte [ebp - 0x211e], 0xa
call edx
push ebx
mov ecx, esi
mov byte [ebp - 0x211e], 3
call fcn.1105acb0
mov eax, dword [esi + 0x30]
mov edi, dword [esi + 0x28]
mov dword [ebp - 0x2124], eax
test eax, eax
je case.0x1105b004.3
jmp 0x1105b0e6
mov eax, dword [ebp - 0x2124]
cmp eax, 0x2000
ja 0x1105b0f1
mov esi, eax
jmp 0x1105b12f
mov esi, 0x2000
cmp byte [edi + esi - 1], 0x20
jb 0x1105b126
cmp byte [esi + edi - 2], 0x20
jb 0x1105b11b
cmp byte [esi + edi - 3], 0x20
jb 0x1105b11e
cmp byte [esi + edi - 4], 0x20
jb 0x1105b123
sub esi, 4
test esi, esi
jg 0x1105b0f6
jmp 0x1105b126
dec esi
jmp 0x1105b126
sub esi, 2
jmp 0x1105b126
sub esi, 3
test esi, esi
jne 0x1105b12f
mov esi, 0x2000
push esi
lea eax, [ebp - 0x2112]
push edi
push eax
call fcn.11162c60
mov edx, dword [ebx]
mov edx, dword [edx + 0x44]
add esp, 0xc
push 0
lea eax, [esi + 0xe]
push eax
lea ecx, [ebp - 0x2120]
push ecx
mov ecx, ebx
call edx
add edi, esi
sub dword [ebp - 0x2124], esi
jne 0x1105b0e0
jmp case.0x1105b004.3
push pe_nt_image_headers32
lea eax, [ebp - 0x2112]
push eax
push 0x111ee5a8
mov byte [ebp - 0x211e], 8
call fcn.111433d0
lea eax, [ebp - 0x2112]
add esp, 0x10
lea edx, [eax + 1]
jmp 0x1105b190
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1105b190
sub eax, edx
mov edx, dword [ebx]
mov edx, dword [edx + 0x44]
push 0
add eax, 0xf
push eax
lea eax, [ebp - 0x2120]
push eax
mov ecx, ebx
call edx
jmp case.0x1105b004.3
mov eax, dword [ebp - 0x2124]
push eax
lea ecx, [ebp - 0x2128]
push ecx
push esi
mov dword [esi + 0x30], 0
call fcn.1105ad10
mov edi, dword [ebp - 0x2128]
add esp, 0xc
push ebx
mov ecx, esi
mov dword [esi + 8], edi
call fcn.1105acb0
mov edx, dword [ebx]
mov edx, dword [edx + 0x44]
push 0
push 0xf
lea eax, [ebp - 0x2120]
push eax
mov ecx, ebx
mov byte [ebp - 0x211e], 9
call edx
push 0x28
call fcn.111101b0
add esp, 4
mov dword [ebp - 0x2128], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x1105b224
push esi
push edi
mov ecx, eax
call fcn.1105a7a0
jmp 0x1105b226
xor eax, eax
push 0
push 1
push 0x1105ab60
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 4], eax
call fcn.11110040
push eax
call dword [sym.imp.KeRneL32.DLl_CloseHandle]
xor eax, eax
lea esp, [esp]
mov cl, byte [ebp + eax - 0x110]
mov byte [eax + 0x111ee5a8], cl
inc eax
test cl, cl
jne 0x1105b250
push 0
push ebx
push 0x400
call fcn.11029990
add esp, 0xc
jmp case.0x1105b004.3
test edi, edi
je case.0x1105b004.3
mov eax, dword [0x111ee5a4]
push eax
call dword [sym.imp.KeRneL32.DLl_SetEvent]
jmp case.0x1105b004.3
test edi, edi
je case.0x1105b004.3
mov ecx, dword [0x111ee5a0]
push ecx
call dword [sym.imp.KeRneL32.DLl_SetEvent]
jmp case.0x1105b004.3
test edi, edi
je case.0x1105b004.3
mov edx, dword [ebp + 0xc]
push ebx
push edx
push ecx
mov ecx, esi
call fcn.1105a860
test eax, eax
jne case.0x1105b004.3
mov esi, dword [esi]
test esi, esi
je case.0x1105b004.3
push eax
mov dword [ebp - 0x2124], eax
lea eax, [ebp - 0x2124]
push eax
mov eax, dword [ebp - 0x2128]
movzx ecx, word [eax + 0xc]
push ecx
add eax, 0xe
push eax
push esi
call dword [sym.imp.KeRneL32.DLl_WriteFile]
test eax, eax
jne case.0x1105b004.3
call dword [sym.imp.KeRneL32.DLl_GetLastError]
jmp case.0x1105b004.3
test edi, edi
je case.0x1105b004.3
mov edx, dword [0x111ee598]
push edx
call dword [sym.imp.KeRneL32.DLl_SetEvent]
mov eax, dword [esi]
mov edi, dword [sym.imp.KeRneL32.DLl_CloseHandle]
push eax
call edi
test eax, eax
jne 0x1105b339
push 0x111a090c
call fcn.1105a760
add esp, 4
mov ecx, dword [esi + 8]
push ecx
mov dword [esi], 0
call edi
test eax, eax
jne 0x1105b356
push 0x111a08fc
call fcn.1105a760
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [0x111ee6ac]
test eax, eax
je 0x1105b390
push 0x3e8
push eax
call dword [sym.imp.KeRneL32.DLl_WaitForSingleObject]
test eax, eax
jne 0x1105b390
mov edx, dword [0x111ee6ac]
push edx
call edi
mov dword [0x111ee6ac], 0
mov byte [0x111ee5a8], 0
push 0
push ebx
push 0x401
call fcn.11029990
mov eax, dword [esi + 4]
add esp, 0xc
test eax, eax
je 0x1105b3ae
mov dword [eax + 0x18], 1
mov dword [esi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.11162bb7
mov esp, ebp
pop ebp
ret 0xc