Function at 0x1095e31
Capabilities:
Write file on windows

Disassembly:
push 0x12c
mov eax, 0x10a91a4
call fcn.01068477
mov edi, dword [ebp + 8]
mov dword [ebp - 0x134], edi
xor ebx, ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 4], ebx
push 0x102d8fc
lea ecx, [ebp - 0x12c]
call fcn.0102d329
mov byte [ebp - 4], 1
cmp dword [0x10b8d90], ebx
jne 0x1095ea4
push 0x10b8d70
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor esi, esi
inc esi
mov dword [0x10b8d90], esi
mov dword [ebp - 0x130], esi
jmp 0x1095ea7
xor esi, esi
inc esi
mov byte [ebp - 4], bl
push dword [ebp - 0x12c]
call dword [sym.imp.msvcrt.dll_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS_____cdecl__set_se_translator_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS___]
pop ecx
or dword [ebp - 4], 0xffffffff
jmp 0x1095f04
cmp dword [0x10b8d90], ebx
je 0x1095f1d
push 0x10b8d70
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x128], esi
cmp byte [edi], 0x2b
jne 0x1095f29
inc edi
mov dword [ebp - 0x120], esi
push 0x104
lea eax, [ebp - 0x118]
push eax
push edi
call fcn.0107da65
cmp eax, ebx
je 0x1095f4c
push eax
push 0x1b70192
call fcn.0107ae44
jmp 0x1095f52
lea edi, [ebp - 0x118]
cmp dword [ebp - 0x120], ebx
mov eax, 0x101ca70
jne 0x1095f64
mov eax, 0x101ca6c
push eax
push edi
call dword [sym.imp.msvcrt.dll_fopen]
pop ecx
pop ecx
mov esi, eax
cmp esi, ebx
je 0x1095fac
cmp dword [ebp - 0x120], ebx
je 0x1095fe7
push 2
push ebx
push esi
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1095fd4
push esi
call dword [sym.imp.msvcrt.dll_ftell]
pop ecx
cmp eax, 0x80000
jl 0x1095fd4
push esi
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
mov dword [ebp - 0x120], ebx
jmp 0x1095f52
push edi
push 0x101ca60
push ebx
call fcn.0107db31
mov eax, 0x80004005
mov esi, eax
push eax
push 0x1c50192
push 0x101ca54
call fcn.0107ae7f
jmp 0x109607e
push esi
push 1
push 0x4a
push 0x101c998
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
mov eax, dword [0x10b8d88]
cmp eax, ebx
je 0x1095ff8
push eax
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
mov dword [0x10b8d88], esi
push edi
push 0x101ca60
push 1
call fcn.0107db31
push 0x10b8d70
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x128], ebx
lea eax, [ebp - 0x124]
push eax
call fcn.010a5819
lea eax, [ebp - 0x11c]
push eax
push 2
call fcn.010a5700
push 0x3b4
push 0x1e1
mov esi, 0x192
push esi
call fcn.01095c36
push dword [ebp + 0xc]
push 0x1095cb7
call fcn.01095d32
mov dword [0x10b8d94], 0x1095d0a
push ebx
push dword [ebp - 0x11c]
push dword [ebp - 0x124]
push ebx
push ebx
push 0x1e5
push esi
call fcn.010959b8
xor esi, esi
cmp dword [ebp - 0x128], ebx
je 0x1096091
push 0x10b8d70
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, ebx
je 0x10960ae
cmp dword [ebp - 0x130], ebx
je 0x10960ae
push 0x10b8d70
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x10b8d90], ebx
cmp dword [ebp - 0x124], ebx
je 0x10960c2
push dword [ebp - 0x124]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x11c], ebx
je 0x10960d6
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.010684e2
ret 8