Function at 0x4e17a9
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x5184d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x28], edx
mov esi, ecx
mov dword [ebp - 0x4c], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
xor eax, eax
mov ebx, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x38]
lea eax, [ebp - 0x1c]
push eax
push 3
pop edx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], 0x42fc30
mov dword [ebp - 0x10], 0x42fc1c
mov dword [ebp - 8], 0x42fc08
call fcn.004e16dc
mov edi, eax
test edi, edi
je 0x4e182c
push edi
push 0x27d0197
jmp 0x4e19ab
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x24]
call fcn.004e14c4
mov edi, eax
test edi, edi
je 0x4e1851
push edi
push 0x2800197
call dword [sym.imp.certcli.dll_Ordinal_357]
mov ebx, dword [ebp - 0x20]
jmp 0x4e19b1
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push esi
mov esi, dword [ebp - 0x3c]
mov ecx, esi
call dword [0x51cbac]
call esi
mov edi, eax
test edi, edi
je 0x4e1877
push edi
push 0x2850197
jmp 0x4e1843
mov esi, dword [ebp - 0x34]
xor eax, eax
push eax
push eax
push 1
push eax
push eax
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
jne 0x4e18b2
call fcn.004c73cc
mov edi, eax
push edi
push 0x2940197
push esi
call dword [sym.imp.certcli.dll_Ordinal_359]
jmp 0x4e1991
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x30]
push 0
pop esi
mov eax, esi
adc eax, dword [ebp - 0x2c]
sub ecx, 1
push esi
push dword [ebp - 0x24]
sbb eax, esi
push eax
push ecx
call fcn.005049b0
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x30], esi
jne 0x4e18dd
cmp dword [ebp - 0x2c], esi
je 0x4e194a
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x40]
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x24]
mov ecx, esi
push ebx
push dword [ebp - 0x4c]
call dword [0x51cbac]
call esi
mov edi, eax
test edi, edi
jne 0x4e197c
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x44]
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4e1964
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x54], eax
jne 0x4e1957
mov ecx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
sub ecx, eax
mov eax, dword [ebp - 0x20]
sbb esi, edi
mov dword [ebp - 0x30], ecx
add eax, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x20], eax
div dword [ebp - 0x58]
mov edx, dword [ebp - 0x48]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], esi
mov dword [edx], eax
test ecx, ecx
jne 0x4e18e0
test esi, esi
jne 0x4e18e0
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp + 0x10]
add eax, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x4e1988
mov edi, 0x80070026
push edi
push 0x2ae0197
jmp 0x4e1971
call fcn.004c73cc
mov edi, eax
push edi
push 0x2a90197
push dword [ebp - 0x34]
call dword [sym.imp.certcli.dll_Ordinal_359]
jmp 0x4e1988
push edi
push 0x2a20197
call dword [sym.imp.certcli.dll_Ordinal_357]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
mov ecx, esi
call dword [0x51cbac]
call esi
test eax, eax
je 0x4e19b1
push eax
push 0x2c80197
call dword [sym.imp.certcli.dll_Ordinal_357]
test ebx, ebx
je 0x4e19c3
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp dword [ebp - 0x38], 0
je 0x4e19d2
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005036b0
leave
ret 0x10