Function at 0x458380
Capabilities:
Check if file exists
Delete file
Get file size
Query or enumerate registry value
Read file on windows
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4874d7
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x4a8404]
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 edi, ecx
mov dword [ebp - 0xd8], edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa4], 0
call fcn.0040210e
mov ecx, eax
test ecx, ecx
je 0x458a80
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xd0], esi
mov dword [ebp - 4], 0
call fcn.0040210e
mov ecx, eax
test ecx, ecx
je 0x458a8a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xa8], eax
cmp dword [edi], 0
mov byte [ebp - 4], 1
mov dword [ebp - 0xd4], 0
je 0x458427
mov ebx, 1
jmp 0x458a20
push 1
lea eax, [ebp - 0x98]
push ebx
push eax
call fcn.004580c0
add esp, 0xc
push eax
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 2
call fcn.0040ce2a
mov edx, dword [ebp - 0x98]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45846b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0xd0]
push esi
call fcn.00457c30
mov eax, ebx
add esp, 4
sub eax, 2
je 0x4584f8
sub eax, 1
je 0x45848d
xor edi, edi
jmp 0x458570
push str.PopMgr
lea ecx, [ebp - 0xcc]
call fcn.0040d247
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xcc], 0x4917bc
push eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0
push eax
lea eax, [ebp - 0x9c]
mov dword [ebp - 0xb4], 4
push eax
push 0
push str.dver
push dword [ebp - 0xc8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x458563
cmp dword [ebp - 0x9c], 4
jne 0x458563
mov edi, dword [ebp - 0x98]
jmp 0x458565
push 0x4917a8
lea ecx, [ebp - 0xcc]
call fcn.0040d247
lea eax, [ebp - 0x9c]
mov dword [ebp - 0xcc], 0x4917a4
push eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0
push eax
lea eax, [ebp - 0xb4]
mov dword [ebp - 0x9c], 4
push eax
push 0
push str.dver
push dword [ebp - 0xc8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x458563
cmp dword [ebp - 0xb4], 4
jne 0x458563
mov edi, dword [ebp - 0x98]
jmp 0x458565
xor edi, edi
lea ecx, [ebp - 0xcc]
call fcn.0040c7ce
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
lea ecx, [ebp - 0xd4]
push ecx
sbb eax, eax
lea ecx, [ebp - 0xa8]
push ecx
and eax, edi
push eax
push ebx
call fcn.004516d1
mov ecx, eax
call fcn.0045132b
test eax, eax
jne 0x4585b4
call fcn.00458aa0
test eax, eax
je 0x458a1e
push str.Get_durl_fail
jmp 0x458a16
mov eax, dword [ebp - 0xa8]
cmp dword [eax - 0xc], 0
jne 0x4585ee
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4585e2
call fcn.00458aa0
test eax, eax
je 0x458a1e
push str.not_dll
jmp 0x458a16
mov eax, dword [ebp - 0xa8]
cmp dword [eax - 0xc], 0
je 0x458620
call fcn.004516d1
push 0
push dword [ebp - 0xa8]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
test eax, eax
jne 0x4587f4
call fcn.00458aa0
test eax, eax
je 0x458620
push str.DownLoadBuffer_fail
call fcn.00458b50
add esp, 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4589fc
push 0
push 0
push 0x80
push 3
push 0
push SysReAllocString
push esi
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
call fcn.00452c12
test eax, eax
js 0x4589f1
lea eax, [ebp - 0xac]
push eax
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0xb0], edi
cmp edi, 0xffffffff
jne 0x45869c
call fcn.0040a815
test eax, eax
js 0x4589f1
mov edi, dword [ebp - 0xb0]
mov eax, edi
or eax, dword [ebp - 0xac]
je 0x4589f1
lea eax, [edi + 1]
push eax
call fcn.0045fb3e
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4589f1
lea eax, [edi + 1]
push eax
push 0
push ebx
call fcn.0045c240
add esp, 0xc
mov dword [ebp - 0xac], 0
lea eax, [ebp - 0xac]
push 0
push eax
push edi
push ebx
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4586f9
call fcn.0040a815
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x45870a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push edi
push ebx
call fcn.004597a0
add esp, 0x10
mov dword [ebp - 0x98], eax
test eax, eax
je 0x45878a
inc eax
push eax
mov dword [ebp - 0x9c], eax
call fcn.0045fb3e
add esp, 4
mov dword [ebp - 0xa4], eax
test eax, eax
je 0x45878a
push dword [ebp - 0x9c]
push 0
push eax
call fcn.0045c240
push dword [ebp - 0x98]
push dword [ebp - 0xa4]
push edi
push ebx
call fcn.004597a0
add esp, 0x1c
cmp dword [ebp - 0x98], eax
je 0x45878a
push dword [ebp - 0xa4]
call fcn.0045fb49
add esp, 4
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x98], 0
push ebx
call fcn.0045fb49
mov ebx, dword [ebp - 0xa4]
add esp, 4
test ebx, ebx
je 0x4589fc
push dword [ebp - 0x98]
push ebx
call fcn.004591d0
mov edi, dword [ebp - 0xd8]
add esp, 8
mov dword [edi], eax
call fcn.00458aa0
test eax, eax
je 0x4587df
cmp dword [edi], 0
mov ecx, str.false
mov eax, str.ture
cmove eax, ecx
push eax
push str.m_bInit___s
call fcn.00458b50
add esp, 8
push ebx
call fcn.0045fb49
xor ebx, ebx
add esp, 4
cmp dword [edi], ebx
setne bl
jmp 0x458a20
call fcn.004516d1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
test eax, eax
jne 0x45881b
call fcn.00458aa0
test eax, eax
je 0x458620
push str.GetBufferSize_zero
jmp 0x458618
call fcn.004516d1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.0045fb3e
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x458852
call fcn.00458aa0
test eax, eax
je 0x458620
push str.malloc_buffer1_fail
jmp 0x458618
lea eax, [edi + 1]
push eax
push 0
push ebx
call fcn.0045c240
add esp, 0xc
call fcn.004516d1
push edi
push ebx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
cmp edi, eax
je 0x458893
push ebx
call fcn.0045fb49
add esp, 4
call fcn.00458aa0
test eax, eax
je 0x458620
push str.ReadBuffer_fail
jmp 0x458618
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
push esi
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 0x80
push 2
push 0
push 0x40000000
push esi
lea ecx, [ebp - 0xb8]
call fcn.00452c12
test eax, eax
jns 0x45893b
call fcn.00458aa0
test eax, eax
je 0x458927
push 3
lea eax, [ebp - 0x90]
push esi
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], eax
call fcn.004013a3
push dword [ebp - 0x94]
mov byte [ebp - 4], 4
push str.create_file_fail_:__s
call fcn.00458b50
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x90]
add esp, 8
cmp eax, ecx
je 0x458927
push eax
call fcn.0045fb49
add esp, 4
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 1
call fcn.00406d86
jmp 0x45870a
push 0
lea eax, [ebp - 0x9c]
push eax
push edi
push ebx
push dword [ebp - 0xb8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x45895b
call fcn.0040a815
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0xac]
sub eax, 2
je 0x458993
sub eax, 1
jne 0x4589e2
push str.PopMgr
lea ecx, [ebp - 0xcc]
call fcn.0040d247
mov dword [ebp - 0xcc], 0x4917bc
jmp 0x4589ad
push 0x4917a8
lea ecx, [ebp - 0xcc]
call fcn.0040d247
mov dword [ebp - 0xcc], 0x4917a4
mov eax, dword [ebp - 0x98]
push 4
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xac]
push eax
push 4
push 0
push str.dver
push dword [ebp - 0xc8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0xcc]
call fcn.0040c7ce
mov eax, dword [ebp - 0xb8]
mov byte [ebp - 4], 1
jmp 0x4586ff
lea ecx, [ebp - 0xa0]
call fcn.00406d86
mov eax, dword [ebp - 0xd8]
mov dword [eax], 0
call fcn.00458aa0
test eax, eax
je 0x458a1e
push str.pBuff_null
call fcn.00458b50
add esp, 4
xor ebx, ebx
mov edx, dword [ebp - 0xa8]
or edi, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x458a44
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x458a60
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.00459f73
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004021d8
push 0x80004005
call fcn.004021d8
int3