Function at 0x1110f3f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1118b168
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x111ec774]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea edi, [esi + 0x17c]
push edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x4c], edi
call dword [sym.imp.KeRneL32.DLl_EnterCriticalSection]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x110], ebx
je 0x1110f680
lea eax, [esi + 0xc]
push eax
push 0x111b7034
call fcn.11147060
mov edi, dword [esi + 0x118]
add esp, 8
cmp edi, ebx
je 0x1110f48e
mov eax, dword [edi]
mov edx, dword [eax + 0x44]
push 1
push ebx
push ebx
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
push ebx
push ebx
push ebx
push ebx
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 8]
push ebx
mov ecx, edi
call edx
mov eax, dword [edi + 0x2c]
push eax
mov ecx, edi
call fcn.11110000
mov dword [esi + 0x118], ebx
mov ecx, dword [esi + 0x15c]
mov edx, dword [esi + 0x170]
lea eax, [esi + 4]
push eax
push 1
push ecx
call edx
add esp, 0xc
cmp dword [ebp + 8], ebx
je 0x1110f5ee
cmp dword [esi + 0x114], ebx
jne 0x1110f5ee
push 0x30
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.11162be0
mov ecx, dword [esi + 0x194]
add ecx, dword [esi + 0x120]
mov eax, dword [esi + 0x110]
mov edx, dword [esi + 0x134]
mov edi, dword [sym.imp.KeRneL32.DLl_SetFilePointer]
add esp, 0xc
push 1
push ebx
push ebx
push eax
mov dword [ebp - 0x40], 0x52494350
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], edx
call edi
movzx ecx, word [esi + 0x150]
push ebx
push 0x10
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x168]
push edx
push eax
mov word [ebp - 0x30], cx
call fcn.111433d0
movzx eax, word [esi + 0x124]
movzx ecx, word [esi + 0x12a]
movzx edx, word [esi + 0x126]
mov word [ebp - 0x18], ax
movzx eax, word [esi + 0x130]
mov word [ebp - 0x1c], cx
movzx ecx, word [esi + 0x12c]
mov word [ebp - 0x1a], dx
movzx edx, word [esi + 0x12e]
mov word [ebp - 0x12], ax
mov eax, dword [esi + 0x150]
add esp, 0x10
cmp eax, ebx
mov ebx, dword [sym.imp.KeRneL32.DLl_WriteFile]
mov word [ebp - 0x16], cx
mov word [ebp - 0x14], dx
je 0x1110f5ac
push 0
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [esi + 0x110]
lea edx, [eax*8]
mov eax, dword [esi + 0x148]
push edx
push eax
push ecx
call ebx
test eax, eax
jne 0x1110f5ac
mov edx, dword [esi + 0x160]
lea eax, [esi + 0xc]
push eax
mov eax, dword [esi + 0x174]
push 3
push edx
call eax
add esp, 0xc
mov ecx, dword [esi + 0x110]
push 0
push 0
push 0
push ecx
call edi
mov ecx, dword [esi + 0x110]
push 0
lea edx, [ebp - 0x48]
push edx
push 0x30
lea eax, [ebp - 0x40]
push eax
push ecx
call ebx
test eax, eax
jne 0x1110f5ec
mov edx, dword [esi + 0x160]
lea eax, [esi + 0xc]
push eax
mov eax, dword [esi + 0x174]
push 3
push edx
call eax
add esp, 0xc
xor ebx, ebx
mov ecx, dword [esi + 0x110]
push ecx
call dword [sym.imp.KeRneL32.DLl_CloseHandle]
test eax, eax
jne 0x1110f617
mov edx, dword [esi + 0x160]
lea eax, [esi + 0xc]
push eax
mov eax, dword [esi + 0x174]
push 2
push edx
call eax
add esp, 0xc
mov eax, dword [esi + 0x148]
mov dword [esi + 0x110], ebx
cmp eax, ebx
je 0x1110f630
push eax
call fcn.11163aa5
add esp, 4
mov ecx, dword [esi + 0x15c]
mov edx, dword [esi + 0x170]
lea edi, [esi + 4]
push edi
push ebx
push ecx
mov dword [esi + 0x148], ebx
mov dword [esi + 0x150], ebx
mov dword [esi + 0x14c], ebx
call edx
mov eax, dword [edi]
add esp, 0xc
cmp eax, ebx
je 0x1110f66b
cmp eax, 0xffffffff
je 0x1110f66b
push eax
call dword [sym.imp.KeRneL32.DLl_CloseHandle]
mov dword [edi], ebx
cmp dword [esi + 0x198], ebx
jne 0x1110f67d
push 1
call dword [sym.imp.WinMM.DlL_timeEndPeriod]
mov edi, dword [ebp - 0x44]
push edi
call dword [sym.imp.KeRneL32.DLl_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.11162bb7
mov esp, ebp
pop ebp
ret