Function at 0x10a9ece
Capabilities:
Write file on windows

Disassembly:
push 0x158
mov eax, 0x10c2899
call fcn.01077ee3
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 0x1032f1a
lea ecx, [ebp - 0x144]
call fcn.010328b4
mov byte [ebp - 4], 1
cmp dword [0x10d3a0c], ebx
jne 0x10a9f3c
push 0x10d39ec
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor esi, esi
inc esi
mov dword [0x10d3a0c], esi
mov dword [ebp - 0x158], esi
jmp 0x10a9f3f
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 0x10a9f9b
cmp dword [0x10d3a0c], ebx
je 0x10a9fb4
push 0x10d39ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x154], esi
mov eax, dword [ebp - 0x148]
cmp byte [eax], 0x2b
jne 0x10a9fcb
inc dword [ebp - 0x148]
mov dword [ebp - 0x14c], esi
push 0x104
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x148]
call fcn.0108fada
cmp eax, ebx
je 0x10a9ff3
push eax
push 0x1ca0192
call fcn.0108c55a
jmp 0x10a9fff
lea eax, [ebp - 0x140]
mov dword [ebp - 0x148], eax
mov edi, SysReAllocString
jmp 0x10aa06f
cmp dword [ebp - 0x14c], ebx
mov eax, 0x101fec4
jne 0x10aa018
mov eax, 0x101fec0
push eax
push dword [ebp - 0x148]
call dword [sym.imp.msvcrt.dll_fopen]
pop ecx
pop ecx
mov esi, eax
cmp esi, ebx
je 0x10aa086
cmp dword [ebp - 0x14c], ebx
je 0x10aa113
push 2
push ebx
push esi
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10aa100
push esi
call dword [sym.imp.msvcrt.dll_ftell]
pop ecx
cmp eax, 0x80000
jl 0x10aa100
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 0x10aa006
jmp 0x10aa113
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
push dword [ebp - 0x148]
push 0x101feb4
push ebx
call fcn.0108fba6
mov dword [ebp - 0x144], ebx
push 0xffffffffffffffff
push dword [ebp - 0x148]
lea eax, [ebp - 0x144]
push eax
call fcn.01092b34
push esi
push 0x1de0192
push dword [ebp - 0x144]
call fcn.0108c595
push dword [ebp - 0x144]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 0x80070002
mov esi, eax
cmp dword [ebp - 0x14c], ebx
mov ecx, 0x101feac
jne 0x10aa0ef
mov ecx, 0x101fea4
push eax
push 0x1e00192
push ecx
call fcn.0108c595
jmp 0x10aa1fd
push esi
push 1
push 0x4a
push 0x101fdb8
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
mov eax, dword [0x10d3a04]
cmp eax, ebx
je 0x10aa124
push eax
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
mov dword [0x10d3a04], esi
cmp dword [ebp - 0x144], ebx
je 0x10aa144
push dword [ebp - 0x148]
push 0x101feb4
push 1
call fcn.0108fba6
push 0x10d39ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x154], ebx
lea eax, [ebp - 0x150]
push eax
call fcn.010ac2e6
push 0x3b4
push 0x1ff
mov esi, 0x192
push esi
call fcn.010a9cd0
push dword [ebp + 0xc]
push 0x10a9d52
call fcn.010a9dcf
mov dword [0x10d3a10], 0x10a9da5
push ebx
push ebx
push dword [ebp - 0x150]
push ebx
push ebx
push ebx
push 0x204
push esi
call fcn.010a9a17
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.0108cd48
cmp dword [ebp - 0x15c], ebx
mov eax, 0x10040c0
jne 0x10aa1c8
mov eax, 0x1003f24
fld dword [ebp - 0x160]
push ecx
push ecx
fstp qword [esp]
push eax
push 0x101fe8c
push 0x14
lea eax, [ebp - 0x3c]
push eax
call fcn.0102e48f
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.010a9a17
xor esi, esi
cmp dword [ebp - 0x154], ebx
je 0x10aa210
push 0x10d39ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, ebx
je 0x10aa22d
cmp dword [ebp - 0x158], ebx
je 0x10aa22d
push 0x10d39ec
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x10d3a0c], ebx
cmp dword [ebp - 0x150], ebx
je 0x10aa241
push dword [ebp - 0x150]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.01077f4e
ret 8