Function at 0x404260
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x433acb
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x4464d0]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
mov eax, dword [0x4464d0]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov edi, eax
call esi
mov ebx, eax
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
mov esi, dword [esp + 0x40]
sub edi, eax
sub esi, dword [esp + 0x38]
mov dword [esp + 0x18], eax
sub ebx, esi
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
mov eax, ebx
mov ebx, dword [esp + 0x14]
push 0
push esi
push dword [esp + 0x20]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
push eax
push ecx
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
lea ecx, [esp + 0x44]
mov dword [0x44a004], ebx
call fcn.004084c0
mov dword [esp + 0x278], 0
cmp dword [esp + 0x54], 0
jbe 0x40436a
cmp dword [esp + 0x58], 8
lea esi, [esp + 0x44]
mov eax, 0x4478f0
mov edx, 0x104
cmovae esi, dword [esp + 0x44]
sub esi, eax
mov edi, edi
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x40435e
movzx ecx, word [esi + eax]
test cx, cx
je 0x40435e
mov word [eax], cx
add eax, 2
dec edx
jne 0x404340
jmp 0x404362
test edx, edx
jne 0x404365
sub eax, 2
xor ecx, ecx
mov word [eax], cx
xor eax, eax
push 0x206
push eax
mov word [esp + 0x64], ax
lea eax, [esp + 0x66]
push eax
call fcn.0041bd20
add esp, 0xc
lea eax, [esp + 0x5c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x5c]
push 0x5c
push eax
call fcn.00419d75
add esp, 8
test eax, eax
je 0x4043f1
xor ecx, ecx
push str.Activation_Success.log
mov word [eax + 2], cx
lea eax, [esp + 0x60]
push eax
push 0x43f800
push 0x104
push 0x44a250
call fcn.00404050
add esp, 0x14
lea eax, [esp + 0x5c]
push str.Activation_Fail.log
push eax
push 0x43f800
push 0x208
push 0x44a048
call fcn.00404050
add esp, 0x14
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3f2
push ebx
call esi
push 0x3f5
push ebx
mov dword [0x44a040], eax
call esi
push 0x3ef
push ebx
mov dword [0x44a03c], eax
call esi
push 0x3f0
push ebx
mov dword [0x44a038], eax
call esi
push 0x3f3
push ebx
mov dword [0x44a034], eax
call esi
push 0x3f6
push ebx
mov dword [0x44a030], eax
call esi
push 0x3f1
push ebx
mov dword [0x44a02c], eax
call esi
push 0x3f4
push ebx
mov dword [0x44a028], eax
call esi
push 0x3f9
push ebx
mov dword [0x44a024], eax
call esi
push 0x3fd
push ebx
mov dword [0x44a020], eax
call esi
push 0x3fa
push ebx
mov dword [0x44a01c], eax
call esi
push 0x3fb
push ebx
mov dword [0x44a018], eax
call esi
push 0x3fc
push ebx
mov dword [0x44a014], eax
call esi
push 0x3f7
push ebx
mov dword [0x44a010], eax
call esi
push 0x3f8
push ebx
mov dword [0x44a00c], eax
call esi
mov dword [0x44a008], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 1
push 0xf1
push dword [0x44a030]
call esi
push 0
push 0
push 0xf1
push dword [0x44a02c]
call esi
push 0x4478f0
push dword [0x44a028]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [esp + 0x1c]
call fcn.00408390
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
call fcn.004041a0
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [0x44a040]
call esi
push 0
push dword [0x44a03c]
call esi
push 0
push dword [0x44a034]
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 1
push 1
push 0
call esi
push 0
push 1
push 1
push 0
mov dword [0x449ff8], eax
call esi
cmp dword [esp + 0x30], 8
mov dword [0x449ffc], eax
jb 0x404571
push dword [esp + 0x1c]
call fcn.00418fbd
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
cmp dword [esp + 0x58], 8
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
jb 0x40459b
push dword [esp + 0x44]
call fcn.00418fbd
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.00418fae
mov esp, ebp
pop ebp
ret