Function at 0x48022a
Capabilities:
Delete file
Get common file path
Read file on windows

Disassembly:
push ebp
sub esp, 0x628
lea ebp, [esp - 4]
mov eax, dword [0x84dfc0]
xor eax, ebp
mov dword [ebp + 0x628], eax
push 0x40
mov eax, 0x7647b2
call fcn.0048d201
mov eax, dword [ebp + 0x638]
mov ebx, dword [ebp + 0x634]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x63c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x640]
mov dword [ebp - 0x20], eax
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp + 0x420], ax
lea eax, [ebp + 0x422]
push esi
push eax
mov dword [ebp - 0x1c], esi
call fcn.0048d310
add esp, 0xc
push esi
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x34], 0xf
call fcn.0041c8d0
mov dword [ebp - 4], esi
cmp ebx, esi
je 0x48055b
xor ecx, ecx
inc ecx
mov edi, 0x80bb84
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4802c2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x48055b
lea eax, [ebp]
push ebx
push eax
call fcn.00471fc2
pop ecx
pop ecx
push 0x208
lea eax, [ebp + 0x420]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp + 0x420]
push eax
push str._sCfgOfSfUpt.dat
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp + 4]
add esp, 0xc
cmp dword [ebp + 0x18], 8
jae 0x48030e
lea eax, [ebp + 4]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004720f1
pop ecx
pop ecx
push 0xffffffffffffffff
xor edi, edi
push edi
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 2
call fcn.0041c6d0
xor ebx, ebx
push edi
inc ebx
push ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.0041c8f0
cmp dword [ebp + 0x34], 0x10
mov eax, dword [ebp + 0x20]
jae 0x480349
lea eax, [ebp + 0x20]
push eax
push str._agent_web_ReadCfgOfSelfUpdate_url_s
push 4
call fcn.004618b4
push eax
call fcn.004621aa
add esp, 0x10
lea eax, [ebp + 0x420]
push eax
push str._agent_web_ReadCfgOfSelfUpdate__outpath_ws
push 4
call fcn.004618b4
push eax
call fcn.00462369
add esp, 0x10
cmp dword [ebp + 0x30], edi
jne 0x480387
push edi
push ebx
jmp 0x480553
cmp dword [ebp + 0x34], 0x10
mov eax, dword [ebp + 0x20]
jae 0x480393
lea eax, [ebp + 0x20]
push dword [ebp - 0x18]
lea ecx, [ebp + 0x420]
push ecx
push eax
lea ecx, [ebp - 0x29]
call fcn.00473c39
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x480380
mov esi, 0x1f3
push esi
lea eax, [ebp + 0x39]
push edi
push eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov byte [ebp + 0x38], 0
call fcn.0048d310
push esi
lea eax, [ebp + 0x22d]
push edi
push eax
mov byte [ebp + 0x22c], 0
call fcn.0048d310
push 0x789ca8
lea eax, [ebp + 0x420]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x10], edi
call fcn.0048f5eb
add esp, 0x24
cmp dword [ebp - 0x14], edi
je 0x480380
push dword [ebp - 0x14]
lea ebx, [esi + 1]
push ebx
lea eax, [ebp + 0x38]
push 1
push eax
call fcn.0048f1d7
push dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.0048eebb
add esp, 0x14
lea eax, [ebp + 0x420]
push eax
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 0x38], 0xd
je 0x480550
cmp byte [ebp + 0x38], 0xa
je 0x480550
xor eax, eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x18], edi
jbe 0x48050c
mov dl, byte [ebp + eax + 0x38]
cmp dl, 0xd
jne 0x4804d3
mov esi, dword [ebp - 0x28]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48045f
sub eax, edx
jne 0x480497
push dword [ebp - 0x10]
lea eax, [ebp + 0x22c]
push eax
push esi
call fcn.004909c0
mov eax, esi
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x480482
sub eax, ecx
inc eax
push eax
push esi
call fcn.00491099
pop ecx
pop ecx
jmp 0x4804bd
mov eax, dword [ebp - 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48049d
sub eax, edx
jne 0x48050c
push dword [ebp - 0x10]
lea eax, [ebp + 0x22c]
push eax
push dword [ebp - 0x20]
call fcn.004909c0
add esp, 0xc
push ebx
lea eax, [ebp + 0x22c]
push edi
push eax
mov dword [ebp - 0x10], edi
call fcn.0048d310
add esp, 0xc
jmp 0x4804fc
cmp dl, 0xa
je 0x4804fc
mov eax, dword [ebp - 0x28]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4804de
sub eax, esi
jne 0x4804ef
cmp dword [ebp - 0x10], 0x21
jg 0x48050c
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov byte [ebp + eax + 0x22c], dl
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp eax, dword [ebp - 0x18]
jb 0x48044e
mov eax, dword [ebp - 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x480512
sub eax, edx
cmp eax, 0x20
jne 0x480550
mov eax, dword [ebp - 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x480526
sub eax, edx
jne 0x480546
push dword [ebp - 0x10]
lea eax, [ebp + 0x22c]
push eax
push dword [ebp - 0x20]
call fcn.004909c0
add esp, 0xc
xor eax, eax
inc eax
push edi
mov dword [ebp - 0x1c], eax
push eax
jmp 0x480553
push edi
push 1
lea ecx, [ebp]
call fcn.00449c25
push 0
push 1
lea ecx, [ebp + 0x1c]
call fcn.0041c8f0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x628]
xor ecx, ebp
call fcn.0048d1f2
add ebp, 0x62c
leave
ret 0x10