Function at 0x426580
Capabilities:
Delete file
Get memory capacity
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cde08
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x5062f0]
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
call fcn.004219e0
mov ecx, eax
call fcn.0040d1f0
test eax, eax
je 0x42686a
push dword [edi + 4]
lea esi, [edi + 0x60]
mov ecx, esi
call fcn.004299e0
push esi
lea ecx, [edi + 0x28]
call fcn.0042c9e0
lea eax, [ebp - 0x68]
push eax
call fcn.0040c520
push 0x40
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0046ce10
add esp, 0x10
mov dword [ebp - 0x50], 0x40
lea eax, [ebp - 0x50]
xorps xmm0, xmm0
movlpd qword [ebp - 0x64], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x426629
mov edi, dword [ebp - 0x48]
mov esi, dword [ebp - 0x44]
shrd edi, esi, 0x14
shr esi, 0x14
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], esi
jmp 0x426635
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x58], eax
call fcn.0041d460
call fcn.00421a70
mov ebx, eax
mov dword [ebp - 0x5c], ebx
call fcn.0040c000
mov ecx, eax
test ecx, ecx
je 0x426886
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x60], edi
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x800
or eax, ecx
mov esi, dword [ebx + 0x14]
mov byte [ebp - 4], 1
jge 0x426689
push 0x800
lea ecx, [ebp - 0x60]
call fcn.0040c880
mov edi, dword [ebp - 0x60]
cmp dword [edi - 8], 0x800
jl 0x426890
push esi
push 0x800
push edi
push 0x4d8694
push str.ServiceVer
xor eax, eax
mov dword [edi - 0xc], 0x800
push str.General
mov word [edi + 0x1000], ax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [edi - 8]
push edi
call fcn.0048a313
add esp, 8
test eax, eax
js 0x426890
cmp eax, dword [edi - 8]
jg 0x426890
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x42689a
mov edx, eax
mov ecx, edi
mov si, word [ecx]
cmp si, word [edx]
jne 0x42671d
test si, si
je 0x426719
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x42671d
add ecx, 4
add edx, 4
test si, si
jne 0x4266f7
xor ecx, ecx
jmp 0x426722
sbb ecx, ecx
or ecx, 1
push dword [ebx + 0x14]
test ecx, ecx
je 0x426755
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
push str.ServiceVer
push str.General
call esi
push dword [ebx + 0x14]
push 0x4d9850
push 0x4d9858
push str.Hardware
call esi
jmp 0x426816
push 0
push str.Memory
push str.Hardware
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, dword [ebp - 0x54]
cmp dword [ebp - 0x58], eax
jne 0x426794
test esi, esi
jne 0x426794
push dword [ebx + 0x14]
push esi
push 0x4d9858
push str.Hardware
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x42681f
jmp 0x426816
call fcn.0040c000
mov ecx, eax
test ecx, ecx
je 0x4268a4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x54], eax
push esi
push dword [ebp - 0x58]
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 2
push 0x4da89c
push eax
call fcn.0040bf10
mov esi, dword [ebp - 0x54]
add esp, 0x10
push dword [ebx + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push esi
push str.Memory
push str.Hardware
call ebx
mov eax, dword [ebp - 0x5c]
push dword [eax + 0x14]
push 0x4d9850
push 0x4d9858
push str.Hardware
call ebx
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x426813
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x5c]
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, ebx
call fcn.0041c690
mov dword [ebx], eax
add edi, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x426846
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x68]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x426865
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, 1
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.004537ea
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040bd70
push 0x80070057
call fcn.0040bd70
push 0x80004005
call fcn.0040bd70
push 0x80004005
call fcn.0040bd70
int3