Function at 0x40cb26
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x47381c
call fcn.00444d58
sub esp, 0x58
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push str.crypt32.dll
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x18], eax
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x40cbfa
push str.CertSerializeCertificateStoreElement
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x40cbfa
lea eax, [ebp - 0x11]
push ebx
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], 0x47b560
mov dword [ebp - 0x44], 0x47b558
call fcn.004017e1
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
push ebx
push 1
call esi
mov edi, eax
lea ecx, [ebp - 0x64]
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00408e31
mov ecx, dword [eax]
mov byte [ebp - 4], 3
mov byte [eax + 4], 1
call fcn.00408ddc
mov eax, dword [eax]
push edi
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push 1
call esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00408e5e
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push ebx
push ebx
push dword [ebp + 8]
call dword [ebp - 0x24]
cmp eax, ebx
jne 0x40cc0a
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00401bc2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0040cd7b
jmp 0x40ccca
mov eax, dword [ebp - 0x20]
inc eax
push eax
call fcn.00444d77
mov esi, eax
pop ecx
cmp esi, ebx
mov dword [ebp - 0x2c], esi
setne byte [ebp - 0x30]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 4
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [ebp - 0x24]
cmp eax, ebx
jne 0x40cc42
cmp byte [ebp - 0x30], bl
je 0x40cbee
push esi
call fcn.00444394
pop ecx
jmp 0x40cbee
lea ecx, [ebp - 0x64]
call fcn.0040198d
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x40cc75
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0040cd61
jmp 0x40cc9f
lea ecx, [ebp - 0x28]
push ebx
push ecx
push dword [ebp - 0x20]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40ccdd
cmp dword [ebp - 0x1c], ebx
je 0x40cc9f
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x40cc9f
push dword [ebp - 0x1c]
call eax
mov dword [ebp - 0x1c], ebx
cmp byte [ebp - 0x30], bl
je 0x40ccab
push esi
call fcn.00444394
pop ecx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00401bc2
cmp dword [ebp - 0x18], ebx
je 0x40ccca
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, ebx
je 0x40ccca
push dword [ebp - 0x18]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
cmp dword [ebp - 0x1c], ebx
je 0x40ccf3
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x40ccf3
push dword [ebp - 0x1c]
call eax
mov dword [ebp - 0x1c], ebx
cmp byte [ebp - 0x30], bl
je 0x40ccff
push esi
call fcn.00444394
pop ecx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00401bc2
cmp dword [ebp - 0x18], ebx
je 0x40cd1e
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, ebx
je 0x40cd1e
push dword [ebp - 0x18]
call eax
push 1
pop eax
jmp 0x40cccc