Function at 0x407150
Capabilities:
Check for time delay via gettickcount
Get disk information
Get memory capacity
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3d4
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x3bc], edi
call fcn.00409190
lea ecx, [ebp - 0x158]
push ecx
push eax
call fcn.004122d4
add esp, 8
test eax, eax
jne 0x407191
mov dword [ebp - 0x3bc], 0xfffffffc
lea edx, [ebp - 0x168]
push edx
mov dword [ebp - 0x168], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x160]
shrd ecx, eax, 0x14
shr eax, 0x14
mov esi, 2
cmp eax, edi
ja 0x4071e3
jb 0x4071ce
cmp ecx, 0x200
ja 0x4071d7
add dword [ebp - 0x3bc], 5
jmp 0x4071e9
cmp eax, edi
ja 0x4071e3
cmp ecx, 0x2000
jb 0x4071e9
sub dword [ebp - 0x3bc], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, 0x88888889
mul edx
shr edx, 5
cmp edx, 5
ja 0x407213
add dword [ebp - 0x3bc], 3
jmp 0x40721e
cmp edx, 0x3c
jb 0x40721e
sub dword [ebp - 0x3bc], esi
push 5
mov dword [ebp - 0x3c4], edi
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0x14]
add esp, 4
push eax
call fcn.0041356b
add esp, 4
mov ebx, eax
cmp eax, edi
jne 0x40724b
mov ebx, 0x423572
push 6
call fcn.00403fe0
mov eax, dword [0x42a118]
mov eax, dword [eax + 0x18]
add esp, 4
push eax
call fcn.0041356b
add esp, 4
cmp eax, edi
mov edi, eax
jne 0x407271
mov edi, 0x423572
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407276
sub eax, edx
mov edx, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407286
sub eax, esi
lea esi, [eax + edx + 0x2e]
push esi
call fcn.00412765
add esp, 4
mov dword [ebp - 0x3c0], eax
test eax, eax
je 0x407293
push 0x63
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov edx, dword [ecx + 0x18c]
mov esi, dword [ebp - 0x3c0]
add esp, 4
push edi
push ebx
push edx
push esi
call fcn.004128a6
lea eax, [ebp - 0x290]
push eax
push esi
call fcn.004137e9
mov edi, eax
add esp, 0x18
test edi, edi
je 0x4073cf
cmp edi, 0xffffffff
je 0x4073cf
mov esi, dword [ebp - 0x3c4]
push 0x64
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov ecx, dword [ecx + 0x190]
add esp, 4
lea eax, [ebp - 0x26c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407330
test dl, dl
je 0x40732c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407330
add eax, 2
add ecx, 2
test dl, dl
jne 0x407310
xor eax, eax
jmp 0x407335
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4073a2
mov ecx, 0x425b7c
lea eax, [ebp - 0x26c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407364
test dl, dl
je 0x407360
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407364
add eax, 2
add ecx, 2
test dl, dl
jne 0x407344
xor eax, eax
jmp 0x407369
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4073a2
mov ecx, 0x425b80
lea eax, [ebp - 0x26c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407398
test dl, dl
je 0x407394
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407398
add eax, 2
add ecx, 2
test dl, dl
jne 0x407378
xor eax, eax
jmp 0x40739d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4073a2
inc esi
lea edx, [ebp - 0x290]
push edx
push edi
call fcn.00413910
add esp, 8
test eax, eax
je 0x4072f4
push edi
call fcn.00413a3e
add esp, 4
cmp esi, 1
ja 0x4073cf
add dword [ebp - 0x3bc], 3
mov eax, dword [ebp - 0x3c0]
push eax
call fcn.0041272b
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add esp, 4
xor esi, esi
mov dword [ebp - 0x3c8], 0x5c3a41
xor ebx, ebx
lea edx, [ebp - 0x158]
push edx
lea eax, [ebp - 0x3c8]
lea ecx, [ebx + 0x41]
push eax
mov byte [ebp - 0x3c8], cl
call fcn.004122d4
add esp, 8
test eax, eax
jne 0x407424
lea ecx, [ebp - 0x3c8]
push ecx
call edi
cmp eax, 3
jne 0x407424
inc esi
inc ebx
cmp ebx, 0x1a
jb 0x4073f2
cmp esi, 1
ja 0x407437
inc dword [ebp - 0x3bc]
jmp 0x407443
cmp esi, 3
jb 0x407443
sub dword [ebp - 0x3bc], 2
push 9
mov dword [ebp - 0x3c0], 0
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0x24]
add esp, 4
push eax
call fcn.0041356b
add esp, 4
mov ebx, eax
test eax, eax
jne 0x407474
mov ebx, 0x423572
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407480
sub eax, edx
lea edi, [eax + 0x20]
lea esp, [esp]
push edi
call fcn.00412765
mov esi, eax
add esp, 4
test esi, esi
je 0x407490
push ebx
push str._s.
push esi
call fcn.004128a6
add esp, 0xc
lea eax, [ebp - 0x3b8]
push eax
push esi
call fcn.004137e9
mov edi, eax
add esp, 8
test edi, edi
je 0x4074f5
cmp edi, 0xffffffff
je 0x4074f5
mov ebx, 1
mov edi, edi
add dword [ebp - 0x3c0], ebx
lea ecx, [ebp - 0x3b8]
push ecx
push edi
call fcn.00413910
add esp, 8
test eax, eax
je 0x4074d0
push edi
call fcn.00413a3e
add esp, 4
jmp 0x4074fa
mov ebx, 1
push esi
call fcn.0041272b
add esp, 4
cmp dword [ebp - 0x3c0], 0x19
ja 0x407513
add dword [ebp - 0x3bc], 2
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x120]
sub eax, dword [ebp - 0x128]
cmp eax, 0x400
jne 0x407554
mov ecx, dword [ebp - 0x11c]
sub ecx, dword [ebp - 0x124]
cmp ecx, 0x300
jne 0x407554
add dword [ebp - 0x3bc], ebx
push 0x66
call fcn.00403fe0
mov edx, dword [0x42a118]
mov esi, dword [edx + 0x198]
add esp, 4
push 0x65
call fcn.00403fe0
mov eax, dword [0x42a118]
mov eax, dword [eax + 0x194]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 4
lea ecx, [ebp - 0x3c0]
push ecx
push 0x20019
push 0
push eax
push connect
mov byte [ebp - 0x14], 0
call ebx
mov eax, dword [ebp - 0x3c0]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4075d9
lea edx, [ebp - 0x3c4]
push edx
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push esi
push eax
mov dword [ebp - 0x3c4], 4
call edi
mov edx, dword [ebp - 0x3c0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x67
call fcn.00403fe0
mov eax, dword [0x42a118]
mov esi, dword [eax + 0x19c]
add esp, 4
push 0x65
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov eax, dword [ecx + 0x194]
add esp, 4
lea edx, [ebp - 0x3c0]
push edx
push 0x20019
push 0
push eax
push connect
mov byte [ebp - 0xc], 0
call ebx
mov eax, dword [ebp - 0x3c0]
test eax, eax
je 0x407652
lea ecx, [ebp - 0x3c4]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push 0
push esi
push eax
mov dword [ebp - 0x3c4], 4
call edi
mov eax, dword [ebp - 0x3c0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x14], 0
je 0x407665
cmp byte [ebp - 0xc], 0
je 0x407665
add dword [ebp - 0x3bc], 2
push 0x105
call fcn.00412765
mov esi, eax
add esp, 4
test esi, esi
je 0x407665
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40769e
mov ecx, dword [0x429108]
mov ecx, dword [ecx]
mov edx, esi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x407694
push 0x68
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0x1a0]
add esp, 4
mov dword [ebp - 0x3c4], eax
xor edi, edi
lea esp, [esp]
mov ecx, dword [ebp + edi*4 - 0x3c4]
push ecx
push esi
call fcn.004130a0
add esp, 8
test eax, eax
jne 0x4076e3
inc edi
cmp edi, 1
jb 0x4076c0
mov edi, dword [ebp - 0x3bc]
jmp 0x4076ec
mov edi, dword [ebp - 0x3bc]
add edi, 4
push esi
call fcn.0041272b
add esp, 4
push 0x6a
call fcn.00403fe0
mov edx, dword [0x42a118]
mov esi, dword [edx + 0x1a8]
add esp, 4
push 0x69
call fcn.00403fe0
mov eax, dword [0x42a118]
mov eax, dword [eax + 0x1a4]
add esp, 4
lea ecx, [ebp - 0x3c0]
push ecx
push 0x20019
push 0
push eax
push connect
mov byte [ebp - 0x118], 0
call ebx
mov eax, dword [ebp - 0x3c0]
test eax, eax
je 0x407778
lea edx, [ebp - 0x3c4]
push edx
lea ecx, [ebp - 0x118]
push ecx
push 0
push 0
push esi
push eax
mov dword [ebp - 0x3c4], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x3c0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x6b
call fcn.00403fe0
mov eax, dword [0x42a118]
mov ecx, dword [eax + 0x1ac]
add esp, 4
push 0x6c
mov dword [ebp - 0x3d4], ecx
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0x1b0]
add esp, 4
push 0x6d
mov dword [ebp - 0x3d0], eax
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov edx, dword [ecx + 0x1b4]
add esp, 4
mov dword [ebp - 0x3cc], edx
xor esi, esi
lea ecx, [ecx]
mov eax, dword [ebp + esi*4 - 0x3d4]
push eax
lea ecx, [ebp - 0x118]
push ecx
call fcn.004130a0
add esp, 8
test eax, eax
jne 0x407804
inc esi
cmp esi, 3
jb 0x4077d0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004118d8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
lea eax, [edi + 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004118d8
mov esp, ebp
pop ebp
ret