Function at 0x1034c20
Capabilities:
Write file on windows

Disassembly:
push 0x158
mov eax, 0x10373bd
call fcn.010371b3
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 0x1020362
lea ecx, [ebp - 0x144]
call fcn.0101d7bc
mov byte [ebp - 4], 1
cmp dword [0x103bfac], ebx
jne 0x1034c8e
push 0x103bf8c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor esi, esi
inc esi
mov dword [0x103bfac], esi
mov dword [ebp - 0x158], esi
jmp 0x1034c91
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 0x1034ced
cmp dword [0x103bfac], ebx
je 0x1034d06
push 0x103bf8c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x154], esi
mov eax, dword [ebp - 0x148]
cmp byte [eax], 0x2b
jne 0x1034d1d
inc dword [ebp - 0x148]
mov dword [ebp - 0x14c], esi
push 0x104
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x148]
call fcn.0102000c
cmp eax, ebx
je 0x1034d45
push eax
push 0x1ca0192
call fcn.0101dd77
jmp 0x1034d51
lea eax, [ebp - 0x140]
mov dword [ebp - 0x148], eax
mov edi, 0x80000000
jmp 0x1034dc1
cmp dword [ebp - 0x14c], ebx
mov eax, 0x100997c
jne 0x1034d6a
mov eax, 0x1009978
push eax
push dword [ebp - 0x148]
call dword [sym.imp.msvcrt.dll_fopen]
pop ecx
pop ecx
mov esi, eax
cmp esi, ebx
je 0x1034dd8
cmp dword [ebp - 0x14c], ebx
je 0x1034e65
push 2
push ebx
push esi
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1034e52
push esi
call dword [sym.imp.msvcrt.dll_ftell]
pop ecx
cmp eax, 0x80000
jl 0x1034e52
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 0x1034d58
jmp 0x1034e65
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
push dword [ebp - 0x148]
push 0x100996c
push ebx
call fcn.010200d8
mov dword [ebp - 0x144], ebx
push 0xffffffffffffffff
push dword [ebp - 0x148]
lea eax, [ebp - 0x144]
push eax
call fcn.01023bcb
push esi
push 0x1de0192
push dword [ebp - 0x144]
call fcn.0101ddb2
push dword [ebp - 0x144]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 0x80070002
mov esi, eax
cmp dword [ebp - 0x14c], ebx
mov ecx, 0x1009964
jne 0x1034e41
mov ecx, 0x100995c
push eax
push 0x1e00192
push ecx
call fcn.0101ddb2
jmp 0x1034f4f
push esi
push 1
push 0x4a
push 0x1009870
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
mov eax, dword [0x103bfa4]
cmp eax, ebx
je 0x1034e76
push eax
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
mov dword [0x103bfa4], esi
cmp dword [ebp - 0x144], ebx
je 0x1034e96
push dword [ebp - 0x148]
push 0x100996c
push 1
call fcn.010200d8
push 0x103bf8c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x154], ebx
lea eax, [ebp - 0x150]
push eax
call fcn.0102509a
push 0x3b4
push 0x1ff
mov esi, 0x192
push esi
call fcn.01034a22
push dword [ebp + 0xc]
push 0x1034aa4
call fcn.01034b21
mov dword [0x103bfb0], 0x1034af7
push ebx
push ebx
push dword [ebp - 0x150]
push ebx
push ebx
push ebx
push 0x204
push esi
call fcn.01034769
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.0101e209
cmp dword [ebp - 0x15c], ebx
mov eax, 0x1004eb0
jne 0x1034f1a
mov eax, 0x10034b4
fld dword [ebp - 0x160]
push ecx
push ecx
fstp qword [esp]
push eax
push 0x1009944
push 0x14
lea eax, [ebp - 0x3c]
push eax
call fcn.01015347
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.01034769
xor esi, esi
cmp dword [ebp - 0x154], ebx
je 0x1034f62
push 0x103bf8c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, ebx
je 0x1034f7f
cmp dword [ebp - 0x158], ebx
je 0x1034f7f
push 0x103bf8c
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x103bfac], ebx
cmp dword [ebp - 0x150], ebx
je 0x1034f93
push dword [ebp - 0x150]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.0103721e
ret 8