Function at 0x4e2d26
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 8], 0
mov eax, edx
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
xor edi, edi
lea ecx, [ebp - 8]
mov dword [ebp - 4], edi
push ecx
push ecx
xor ebx, ebx
mov ecx, eax
mov dword [ebp - 0xc], ebx
call fcn.004cc4cd
mov esi, eax
test esi, esi
je 0x4e2d6a
push esi
push 0x6af0197
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4e2f17
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.004cc4cd
mov esi, eax
test esi, esi
je 0x4e2d94
push esi
push 0x6b20197
call dword [sym.imp.certcli.dll_Ordinal_357]
mov edi, dword [ebp - 4]
jmp 0x4e2f17
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x18]
call fcn.004e14c4
mov esi, eax
test esi, esi
je 0x4e2dbc
push esi
push 0x6b50197
call dword [sym.imp.certcli.dll_Ordinal_357]
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
jmp 0x4e2f17
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, 0xffffffff
jne 0x4e2df4
call fcn.004c73cc
mov esi, eax
push esi
push 0x6c20197
push dword [ebp - 8]
call dword [sym.imp.certcli.dll_Ordinal_359]
jmp 0x4e2db1
mov edi, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x14], eax
push ebx
push ebx
setne al
inc eax
push eax
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x4e2e35
call fcn.004c73cc
mov esi, eax
push esi
push 0x6cf0197
push edi
call dword [sym.imp.certcli.dll_Ordinal_359]
jmp 0x4e2f0e
xor eax, eax
xor ecx, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x10], eax
jl 0x4e2ef1
jg 0x4e2e53
cmp dword [ebp + 0x14], eax
jbe 0x4e2ef1
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e2f6f
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4e2f59
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x1c], eax
jne 0x4e2f4c
mov ecx, dword [ebp - 4]
push 0
add ecx, eax
mov eax, dword [ebp - 0xc]
pop edx
adc eax, edx
mov dword [ebp - 4], ecx
add ecx, 0xffff
mov dword [ebp - 0xc], eax
push edx
push 0x10000
adc eax, edx
push eax
push ecx
call fcn.005049b0
mov edx, eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x20], edx
mov ecx, dword [eax]
add ecx, edx
xor edx, edx
imul eax, ecx, 0x64
mov ecx, dword [ebp + 0x20]
div dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jl 0x4e2e53
jg 0x4e2eee
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jb 0x4e2e53
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp + 0x1c]
xor edx, edx
add dword [eax], ecx
imul eax, dword [eax], 0x64
mov ecx, dword [ebp + 0x20]
div dword [ebp + 0x18]
xor esi, esi
mov dword [ecx], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x4e2f26
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x4e2f31
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x4e2f43
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x1c
mov esi, 0x80070026
push esi
push 0x6e50197
jmp 0x4e2f66
call fcn.004c73cc
mov esi, eax
push esi
push 0x6e00197
push edi
call dword [sym.imp.certcli.dll_Ordinal_359]
jmp 0x4e2f05
call fcn.004c73cc
mov esi, eax
push esi
push 0x6d90197
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4e2f05