Function at 0x10a6d36
Capabilities:
Write file on windows

Disassembly:
push 0x158
mov eax, 0x10bf706
call fcn.01074cf3
mov eax, dword [ebp + 8]
mov dword [ebp - 0x148], eax
xor ebx, ebx
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 4], ebx
wait
push 0x1032777
lea ecx, [ebp - 0x144]
call fcn.0103215d
mov byte [ebp - 4], 1
cmp dword [0x10d0964], ebx
jne 0x10a6da4
push 0x10d0944
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor esi, esi
inc esi
mov dword [0x10d0964], esi
mov dword [ebp - 0x158], esi
jmp 0x10a6da7
xor esi, esi
inc esi
mov byte [ebp - 4], bl
push dword [ebp - 0x144]
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
wait
or dword [ebp - 4], 0xffffffff
jmp 0x10a6e03
cmp dword [0x10d0964], ebx
je 0x10a6e1c
push 0x10d0944
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x154], esi
mov eax, dword [ebp - 0x148]
cmp byte [eax], 0x2b
jne 0x10a6e33
inc dword [ebp - 0x148]
mov dword [ebp - 0x14c], esi
push 0x104
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x148]
call fcn.0108c966
cmp eax, ebx
je 0x10a6e5b
push eax
push 0x1ca0192
call fcn.010893e6
jmp 0x10a6e67
lea eax, [ebp - 0x140]
mov dword [ebp - 0x148], eax
mov edi, 0x80000000
jmp 0x10a6ed7
cmp dword [ebp - 0x14c], ebx
mov eax, 0x101f7c4
jne 0x10a6e80
mov eax, 0x101f7c0
push eax
push dword [ebp - 0x148]
call dword [sym.imp.msvcrt.dll_fopen]
pop ecx
pop ecx
mov esi, eax
cmp esi, ebx
je 0x10a6eee
cmp dword [ebp - 0x14c], ebx
je 0x10a6f7b
push 2
push ebx
push esi
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10a6f68
push esi
call dword [sym.imp.msvcrt.dll_ftell]
pop ecx
cmp eax, 0x80000
jl 0x10a6f68
push esi
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
mov dword [ebp - 0x14c], ebx
xor esi, esi
push edi
call sub.certcli.dll_Ordinal_205
cmp eax, ebx
mov dword [ebp - 0x144], eax
jne 0x10a6e6e
jmp 0x10a6f7b
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
push dword [ebp - 0x148]
push 0x101f7b4
push ebx
call fcn.0108ca32
mov dword [ebp - 0x144], ebx
push 0xffffffffffffffff
push dword [ebp - 0x148]
lea eax, [ebp - 0x144]
push eax
call fcn.0108f9b4
push esi
push 0x1de0192
push dword [ebp - 0x144]
call fcn.01089421
push dword [ebp - 0x144]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 0x80070002
mov esi, eax
cmp dword [ebp - 0x14c], ebx
mov ecx, 0x101f7ac
jne 0x10a6f57
mov ecx, 0x101f7a4
push eax
push 0x1e00192
push ecx
call fcn.01089421
jmp 0x10a7065
push esi
push 1
push 0x4a
push 0x101f6b8
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
mov eax, dword [0x10d095c]
cmp eax, ebx
je 0x10a6f8c
push eax
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
mov dword [0x10d095c], esi
cmp dword [ebp - 0x144], ebx
je 0x10a6fac
push dword [ebp - 0x148]
push 0x101f7b4
push 1
call fcn.0108ca32
push 0x10d0944
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x154], ebx
lea eax, [ebp - 0x150]
push eax
call fcn.010a914e
push 0x3b4
push 0x1ff
mov esi, 0x192
push esi
call fcn.010a6b38
push dword [ebp + 0xc]
push 0x10a6bba
call fcn.010a6c37
mov dword [0x10d0968], 0x10a6c0d
push ebx
push ebx
push dword [ebp - 0x150]
push ebx
push ebx
push ebx
push 0x204
push esi
call fcn.010a687f
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.01089bd4
cmp dword [ebp - 0x15c], ebx
mov eax, 0x1003fb8
jne 0x10a7030
mov eax, 0x1003e9c
fld dword [ebp - 0x160]
push ecx
push ecx
fstp qword [esp]
push eax
push 0x101f78c
push 0x14
lea eax, [ebp - 0x3c]
push eax
call fcn.0102dd8f
add esp, 0x18
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
push ebx
push 0x208
push esi
call fcn.010a687f
xor esi, esi
cmp dword [ebp - 0x154], ebx
je 0x10a7078
push 0x10d0944
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, ebx
je 0x10a7095
cmp dword [ebp - 0x158], ebx
je 0x10a7095
push 0x10d0944
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x10d0964], ebx
cmp dword [ebp - 0x150], ebx
je 0x10a70a9
push dword [ebp - 0x150]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.01074d5e
ret 8