Function at 0x1011c1e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0xa0], ebx
test ebx, ebx
je 0x1011c207
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x20]
sub eax, dword [ebx + 0x1c]
push edi
lea edi, [ebx + 0x1c]
mov dword [ebp - 0x9c], edi
test eax, 0xfffffffc
je 0x1011c4cd
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x1011c4f2
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push dword [ebx + 0x18]
lea esi, [eax + 0x10]
mov dword [ebp - 0x8c], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or ecx, 0xffffffff
mov dword [ebp - 0x90], eax
cmp eax, ecx
je 0x1011c4b7
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebx + 0x28]
cmp dword [eax - 0xc], 0
je 0x1011c2f2
push dword [0x1024e2f0]
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x88], ecx
lea ecx, [ebp - 0x88]
push eax
call fcn.10028320
push dword [ebp - 0x88]
lea eax, [ebp - 0x8c]
push str.__________________________s__________________________r_n
push eax
call fcn.1009c8f0
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x84]
add esp, 0xc
cmp eax, ecx
je 0x1011c2d3
push eax
call fcn.10213559
add esp, 4
mov esi, dword [ebp - 0x8c]
lea eax, [ebp - 0x94]
push 0
push eax
push dword [esi - 0xc]
push esi
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [edi + 4]
xor edx, edx
mov ecx, dword [edi]
sub eax, ecx
sar eax, 2
mov dword [ebp - 0x98], edx
test eax, eax
je 0x1011c428
lea esp, [esp]
mov ebx, dword [ecx + edx*4]
test ebx, ebx
je 0x1011c37b
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edi, [eax - 1]
test edi, edi
jle 0x1011c37b
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or ecx, eax
jge 0x1011c356
push edi
lea ecx, [ebp - 0x8c]
call fcn.1005cf50
mov esi, dword [ebp - 0x8c]
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp edi, dword [esi - 8]
jg 0x1011c4e8
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
jmp 0x1011c3c9
cmp dword [esi - 0xc], 0
lea edx, [esi - 0x10]
mov edi, dword [edx]
je 0x1011c3c9
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x1011c3a5
cmp dword [esi - 8], 0
jl 0x1011c4e8
mov dword [esi - 0xc], 0
mov byte [esi], 0
jmp 0x1011c3c9
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1011c3b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x8c], esi
mov eax, dword [esi - 0xc]
test eax, eax
je 0x1011c3fd
mov ebx, dword [ebp - 0x90]
lea ecx, [ebp - 0x94]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push ecx
push eax
push esi
push ebx
call edi
push 0
lea eax, [ebp - 0x94]
push eax
push 2
push 0x102261c8
push ebx
call edi
mov edi, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x98]
inc edx
mov dword [ebp - 0x98], edx
mov eax, dword [edi + 4]
mov ecx, dword [edi]
sub eax, ecx
sar eax, 2
cmp edx, eax
jb 0x1011c310
mov ebx, dword [ebp - 0xa0]
mov eax, dword [ebx + 0x28]
cmp dword [eax - 0xc], 0
je 0x1011c4a1
push dword [0x1024e2f0]
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x88], ecx
lea ecx, [ebp - 0x88]
push eax
call fcn.10028320
push dword [ebp - 0x88]
lea eax, [ebp - 0x8c]
push str.__________________________s__________________________r_n
push eax
call fcn.1009c8f0
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x84]
add esp, 0xc
cmp eax, ecx
je 0x1011c482
push eax
call fcn.10213559
add esp, 4
mov esi, dword [ebp - 0x8c]
lea eax, [ebp - 0x94]
push 0
push eax
push dword [esi - 0xc]
push esi
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.1009cc40
or ecx, 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1011c4cc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
pop esi
pop edi
test ebx, ebx
je 0x1011c4d9
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10212f74
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.100030c0
push 0x80004005
call fcn.100030c0
int3