Function at 0x4e37fc
Capabilities:
Create directory
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
push ebx
push esi
push edi
lea eax, [ebp - 0x194]
push 0x104
push eax
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x194]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4e3858
mov dword [ebp - 4], str.Cant_open_file_
jmp 0x4e3bbc
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebx
push 0xfffffffffffffff8
push edi
call esi
cmp eax, 0x3e8
mov dword [ebp - 0xc], eax
jb 0x4e3b9e
lea eax, [ebp - 0x1c]
push ebx
push eax
lea eax, [ebp - 0x24]
push 8
push eax
push edi
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e3ba7
cmp dword [ebp - 0x1c], 8
jne 0x4e3ba7
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x20], 0x829ab7a5
mov dword [ebp + 8], eax
jne 0x4e3b9e
cmp eax, 4
jl 0x4e3b9e
cmp eax, dword [ebp - 0xc]
jge 0x4e3b9e
push eax
call fcn.004e5b2d
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
je 0x4e3a04
push 2
push ebx
push 0xfffffffffffffff8
mov dword [ebp - 0x18], ebx
pop eax
sub eax, dword [ebp + 8]
push eax
push edi
call esi
cmp eax, 0xffffffff
je 0x4e3b95
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x18]
push ebx
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e3b95
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x18], eax
jne 0x4e3b95
cmp dword [esi], 0x829ab7a5
jne 0x4e3b95
lea eax, [ebp - 0x194]
add esi, 4
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4e3943
mov dword [ebp - 4], str.Cant_retrieve_the_temporary_directory_
jmp 0x4e3bae
mov eax, dword [esi]
push dword [esi + 4]
sub dword [ebp + 8], 0xc
add esi, 4
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea edi, [esi + 4]
push edi
call fcn.004e37db
mov esi, edi
add esp, 0xc
cmp byte [esi], bl
jne 0x4e3995
push dword [ebp - 0xc]
lea eax, [ebp - 0x90]
push str.E_N_X
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.004e59c2
add esp, 0x14
inc esi
jmp 0x4e39af
lea eax, [ebp - 0x194]
push esi
push eax
call fcn.004e59c2
push esi
call fcn.004e5ab2
add esp, 0xc
lea esi, [esi + eax + 1]
lea eax, [ebp - 0x194]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x194]
push 0x40718c
push eax
call fcn.004e59c2
sub dword [ebp + 8], 8
mov eax, dword [esi + 4]
cmp dword [ebp + 8], ebx
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
jle 0x4e3b8c
cmp dword [esi], 0x33e0f0d
jne 0x4e3b8c
cmp eax, ebx
jle 0x4e3b8c
push eax
call fcn.004e5b2d
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x4e3a10
mov dword [ebp - 4], str.Insufficient_memory_
jmp 0x4e3bae
push dword [ebp + 8]
add esi, 8
lea eax, [ebp - 0x14]
push esi
push eax
push edi
call fcn.004e590a
add esp, 0x10
test eax, eax
je 0x4e3a3b
push edi
call fcn.004e5aa2
pop ecx
mov dword [ebp - 4], str.Failed_to_decompress_data_
jmp 0x4e3bae
push dword [ebp - 8]
call fcn.004e5aa2
mov eax, dword [ebp - 0x14]
pop ecx
add eax, edi
mov dword [ebp - 8], edi
cmp edi, eax
mov esi, edi
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x5c], bl
jae 0x4e3b10
mov edi, esi
push esi
mov dword [ebp + 8], edi
call fcn.004e5ab2
mov dword [esp], str.krnln.fnr
push edi
lea esi, [esi + eax + 1]
call fcn.004e82c2
pop ecx
test eax, eax
pop ecx
je 0x4e3a8f
push str.krnln.fne
push edi
call fcn.004e82c2
pop ecx
test eax, eax
pop ecx
jne 0x4e3a9b
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.004e59b2
pop ecx
pop ecx
mov edi, dword [esi]
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x298]
push eax
add esi, 4
call fcn.004e59b2
push dword [ebp + 8]
lea eax, [ebp - 0x298]
push eax
call fcn.004e59c2
add esp, 0x10
lea eax, [ebp - 0x298]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4e3b00
lea ecx, [ebp - 0x28]
push ebx
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, edi
cmp esi, dword [ebp - 0xc]
jb 0x4e3a5c
cmp byte [ebp - 0x5c], bl
jne 0x4e3b1c
mov dword [ebp - 4], str.Not_found_the_kernel_library_
jmp 0x4e3bae
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.004e59b2
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.004e59c2
add esp, 0x10
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
jne 0x4e3b5c
mov dword [ebp - 4], str.Failed_to_load_kernel_library_
jmp 0x4e3bae
push str.GetNewSock
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x4e3b75
mov dword [ebp - 4], str.The_kernel_library_is_invalid_
jmp 0x4e3bae
push 0x3e8
call eax
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x4e3bae
mov dword [ebp - 4], str.The_interface_of_kernel_library_is_invalid_
jmp 0x4e3bae
mov dword [ebp - 4], str.Invalid_data_in_the_file_
jmp 0x4e3bae
mov dword [ebp - 4], str.Failed_to_read_file_or_invalid_data_in_file_
jmp 0x4e3bae
mov dword [ebp - 4], str.Invalid_data_in_the_file_
jmp 0x4e3bbc
mov dword [ebp - 4], str.Failed_to_read_data_from_the_file_
cmp dword [ebp - 8], ebx
je 0x4e3bbc
push dword [ebp - 8]
call fcn.004e5aa2
pop ecx
cmp dword [ebp - 4], ebx
jne 0x4e3bd4
mov eax, dword [ebp - 0x10]
call fcn.004e3bc9
push 0x10
push str.Error
push dword [ebp - 4]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]