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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526b5b
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x588eb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
xor edi, edi
mov esi, 0xf
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x414], edi
mov dword [ebp - 0x400], edi
mov dword [ebp - 0x3fc], esi
mov byte [ebp - 0x410], 0
cmp dword [ecx + 0x14], 8
mov eax, ecx
mov dword [ebp - 4], edi
jb 0x4e2e34
mov eax, dword [ecx]
push 0x52bca4
push eax
call fcn.0050a7e8
add esp, 8
mov dword [ebp - 0x424], eax
test eax, eax
je 0x4e319b
push eax
push 0x3e7
lea eax, [ebp - 0x3f8]
push 1
push eax
call fcn.0050b4f5
mov ebx, dword [ebp - 0x410]
add esp, 0x10
test eax, eax
je 0x4e3096
mov dword [ebp - 0x418], ebx
nop dword [eax + eax]
cmp eax, 0x3e8
jae 0x4e31c1
lea edi, [ebp - 0x3f8]
mov byte [ebp + eax - 0x3f8], 0
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x4e2ea0
sub edi, ecx
mov eax, esi
mov ecx, dword [ebp - 0x414]
sub eax, ecx
cmp edi, eax
ja 0x4e2f01
lea eax, [edi + ecx]
cmp esi, 0x10
mov dword [ebp - 0x400], eax
lea eax, [ebp - 0x410]
cmovae eax, ebx
push edi
lea esi, [eax + ecx]
lea eax, [ebp - 0x3f8]
push eax
push esi
call fcn.004ff680
mov byte [esi + edi], 0
add esp, 0xc
mov edi, dword [ebp - 0x400]
mov esi, dword [ebp - 0x3fc]
mov ebx, dword [ebp - 0x410]
mov dword [ebp - 0x414], edi
jmp 0x4e306c
mov edx, ecx
mov eax, closesocket
sub eax, edx
mov dword [ebp - 0x41c], edx
cmp eax, edi
jb 0x4e31bc
lea eax, [edi + edx]
mov ebx, esi
mov esi, eax
mov dword [ebp - 0x414], eax
or esi, 0xf
mov dword [ebp - 0x428], ebx
cmp esi, 0x7fffffff
jbe 0x4e2f3d
mov esi, closesocket
jmp 0x4e2f5b
mov ecx, ebx
mov eax, closesocket
shr ecx, 1
sub eax, ecx
cmp ebx, eax
jbe 0x4e2f53
mov esi, closesocket
jmp 0x4e2f5b
lea eax, [ebx + ecx]
cmp esi, eax
cmovb esi, eax
lea ecx, [esi + 1]
mov dword [ebp - 0x420], esi
cmp ecx, 0x1000
jb 0x4e2f9b
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.004fbcb4
add esp, 4
test eax, eax
je 0x4e31b7
mov edx, dword [ebp - 0x41c]
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x4e2fb4
test ecx, ecx
je 0x4e2fb2
push ecx
call fcn.004fbcb4
mov edx, dword [ebp - 0x41c]
add esp, 4
mov ebx, eax
jmp 0x4e2fb4
xor ebx, ebx
cmp dword [ebp - 0x428], 0x10
mov eax, dword [ebp - 0x414]
mov dword [ebp - 0x400], eax
mov dword [ebp - 0x3fc], esi
push edx
jb 0x4e3030
push dword [ebp - 0x418]
push ebx
call fcn.004fe150
mov esi, dword [ebp - 0x41c]
lea eax, [ebp - 0x3f8]
push edi
push eax
add esi, ebx
push esi
call fcn.004fe150
mov edx, dword [ebp - 0x428]
add esp, 0x18
mov ecx, dword [ebp - 0x418]
inc edx
mov byte [esi + edi], 0
mov eax, ecx
cmp edx, 0x1000
jb 0x4e3024
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e31b7
push edx
push ecx
call fcn.004fbca6
add esp, 8
jmp 0x4e305a
lea eax, [ebp - 0x410]
push eax
push ebx
call fcn.004fe150
mov esi, dword [ebp - 0x41c]
lea eax, [ebp - 0x3f8]
push edi
push eax
add esi, ebx
push esi
call fcn.004fe150
add esp, 0x18
mov byte [esi + edi], 0
mov edi, dword [ebp - 0x414]
mov esi, dword [ebp - 0x420]
mov dword [ebp - 0x410], ebx
push dword [ebp - 0x424]
lea eax, [ebp - 0x3f8]
mov dword [ebp - 0x418], ebx
push 0x3e7
push 1
push eax
call fcn.0050b4f5
add esp, 0x10
test eax, eax
jne 0x4e2e80
push dword [ebp - 0x424]
call fcn.0050a8d3
add esp, 4
lea ecx, [ebp - 0x410]
cmp esi, 0x10
cmovae ecx, ebx
mov dword [ebp - 0x424], ecx
cmp edi, 0x35
jb 0x4e3156
lea ebx, [edi + ecx]
lea eax, [ebx - 0x34]
sub eax, ecx
push eax
push 0x75
push ecx
call fcn.004ffd60
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4e3156
nop dword [eax]
mov edx, edi
mov ecx, str.user_pref__security.enterprise_roots.enabled___true__
mov esi, 0x31
nop dword [eax]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x4e3101
add edx, 4
add ecx, 4
sub esi, 4
jae 0x4e30f0
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x4e3128
cmp esi, 0xfffffffd
je 0x4e3124
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x4e3128
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x4e3128
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
jne 0x4e3128
xor eax, eax
jmp 0x4e312d
sbb eax, eax
or eax, 1
test eax, eax
je 0x4e314b
inc edi
lea eax, [ebx - 0x34]
sub eax, edi
push eax
push 0x75
push edi
call fcn.004ffd60
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4e30e0
jmp 0x4e3156
sub edi, dword [ebp - 0x424]
cmp edi, 0xffffffff
jne 0x4e3190
mov eax, dword [ebp - 0x42c]
cmp dword [eax + 0x14], 8
jb 0x4e3164
mov eax, dword [eax]
push 0x52c08c
push eax
call fcn.0050a7e8
mov esi, eax
add esp, 8
test esi, esi
je 0x4e3190
push esi
push 0x36
push 1
push str.user_pref__security.enterprise_roots.enabled___true__
call fcn.0050be9b
push esi
call fcn.0050a8d3
add esp, 0x14
lea ecx, [ebp - 0x410]
call fcn.004a4f70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fbc95
mov esp, ebp
pop ebp
ret
call fcn.00501cb1
call fcn.004a4be0
call fcn.004fc467
int3