Function at 0x10a9f39
Capabilities:
Write file on windows

Disassembly:
push 0x158
mov eax, 0x10c2911
call fcn.01077e23
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 0x1032e0b
lea ecx, [ebp - 0x144]
call fcn.010327f1
mov byte [ebp - 4], 1
cmp dword [0x10d3a2c], ebx
jne 0x10a9fa7
push 0x10d3a0c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor esi, esi
inc esi
mov dword [0x10d3a2c], esi
mov dword [ebp - 0x158], esi
jmp 0x10a9faa
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 0x10aa006
cmp dword [0x10d3a2c], ebx
je 0x10aa01f
push 0x10d3a0c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x154], esi
mov eax, dword [ebp - 0x148]
cmp byte [eax], 0x2b
jne 0x10aa036
inc dword [ebp - 0x148]
mov dword [ebp - 0x14c], esi
push 0x104
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x148]
call fcn.0108fab5
cmp eax, ebx
je 0x10aa05e
push eax
push 0x1ca0192
call fcn.0108c503
jmp 0x10aa06a
lea eax, [ebp - 0x140]
mov dword [ebp - 0x148], eax
mov edi, SysReAllocString
jmp 0x10aa0da
cmp dword [ebp - 0x14c], ebx
mov eax, 0x101fe34
jne 0x10aa083
mov eax, 0x101fe30
push eax
push dword [ebp - 0x148]
call dword [sym.imp.msvcrt.dll_fopen]
pop ecx
pop ecx
mov esi, eax
cmp esi, ebx
je 0x10aa0f1
cmp dword [ebp - 0x14c], ebx
je 0x10aa17e
push 2
push ebx
push esi
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10aa16b
push esi
call dword [sym.imp.msvcrt.dll_ftell]
pop ecx
cmp eax, 0x80000
jl 0x10aa16b
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 0x10aa071
jmp 0x10aa17e
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
push dword [ebp - 0x148]
push 0x101fe24
push ebx
call fcn.0108fb81
mov dword [ebp - 0x144], ebx
push 0xffffffffffffffff
push dword [ebp - 0x148]
lea eax, [ebp - 0x144]
push eax
call fcn.01092b0f
push esi
push 0x1de0192
push dword [ebp - 0x144]
call fcn.0108c53e
push dword [ebp - 0x144]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 0x80070002
mov esi, eax
cmp dword [ebp - 0x14c], ebx
mov ecx, 0x101fe1c
jne 0x10aa15a
mov ecx, 0x101fe14
push eax
push 0x1e00192
push ecx
call fcn.0108c53e
jmp 0x10aa268
push esi
push 1
push 0x4a
push 0x101fd28
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
mov eax, dword [0x10d3a24]
cmp eax, ebx
je 0x10aa18f
push eax
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
mov dword [0x10d3a24], esi
cmp dword [ebp - 0x144], ebx
je 0x10aa1af
push dword [ebp - 0x148]
push 0x101fe24
push 1
call fcn.0108fb81
push 0x10d3a0c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x154], ebx
lea eax, [ebp - 0x150]
push eax
call fcn.010ac351
push 0x3b4
push 0x1ff
mov esi, 0x192
push esi
call fcn.010a9d3b
push dword [ebp + 0xc]
push 0x10a9dbd
call fcn.010a9e3a
mov dword [0x10d3a30], 0x10a9e10
push ebx
push ebx
push dword [ebp - 0x150]
push ebx
push ebx
push ebx
push 0x204
push esi
call fcn.010a9a82
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.0108cd23
cmp dword [ebp - 0x15c], ebx
mov eax, 0x10040a8
jne 0x10aa233
mov eax, 0x1003f0c
fld dword [ebp - 0x160]
push ecx
push ecx
fstp qword [esp]
push eax
push 0x101fdfc
push 0x14
lea eax, [ebp - 0x3c]
push eax
call fcn.0102e3ff
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.010a9a82
xor esi, esi
cmp dword [ebp - 0x154], ebx
je 0x10aa27b
push 0x10d3a0c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, ebx
je 0x10aa298
cmp dword [ebp - 0x158], ebx
je 0x10aa298
push 0x10d3a0c
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x10d3a2c], ebx
cmp dword [ebp - 0x150], ebx
je 0x10aa2ac
push dword [ebp - 0x150]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.01077e8e
ret 8