Function at 0x453036c9
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b0
push ebx
xor ebx, ebx
cmp dword [0x4537f664], ebx
jne 0x45303a17
push edi
push esi
push 0x100
lea eax, [ebp - 0x6b0]
push dword [ebp + 8]
mov dword [0x4537f664], 1
push eax
call fcn.453438a0
add esp, 0xc
lea eax, [ebp - 0x1b0]
mov edi, 0x453639d8
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
lea edx, [ebp - 0x24]
jne 0x45303750
mov edi, dword [0x4537f654]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x453037d6
or ebx, 0xffffffff
xor eax, eax
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x1b0]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_CharLowerA]
lea edi, [ebp - 0x1b0]
mov ecx, ebx
xor eax, eax
lea edx, [ebp - 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
and byte [ebp - 0x1a], al
mov edi, str..err
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
xor ebx, ebx
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0xac]
push 0x1001
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0xac], 0x88
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, ebx
mov dword [ebp + 8], eax
jl 0x453039de
lea eax, [ebp - 4]
push eax
call fcn.45343790
pop ecx
lea eax, [ebp - 4]
push eax
call fcn.453435c0
pop ecx
push eax
push str._c_r_n
lea eax, [ebp - 0x5b0]
push 0x400
push eax
call fcn.45342aa0
add esp, 0x10
push 0xd000
call sym.HHA.dll_Ordinal_76
or edx, 0xffffffff
mov edi, eax
mov ecx, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [ebp - 0x5b0]
mov esi, edi
mov edi, ebx
mov ebx, ecx
mov ecx, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea ebx, [ebp - 0x5b0]
and ecx, 3
push 0x203
rep movsb byte es:[edi], byte [esi]
mov edi, 0x453639c4
mov ecx, edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
mov ecx, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, 0x4537f1d8
push ebx
push 0xd000
push dword [0x4537f6ec]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x453038b6
and byte [0x4537f1d8], al
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x5b0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x453038ef
mov esi, 0x453636e4
push 0x203
push ebx
push 0x1d715
push dword [0x4537f6ec]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x45303910
and byte [0x4537f1d8], al
lea eax, [ebp - 0x6b0]
lea edi, [ebp - 0x5b0]
push eax
or ecx, 0xffffffff
xor eax, eax
push dword [ebp + 0xc]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push ebx
lea eax, [ebp + ecx - 0x5b0]
push eax
call esi
mov edx, dword [0x4537f658]
add esp, 0x14
test edx, edx
je 0x45303963
lea edi, [ebp - 0x5b0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp + ecx - 0x5b0]
push eax
call edx
lea edi, [ebp - 0x5b0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x5b0]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll__lwrite]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll__lclose]
push 0x203
push ebx
push 0x1d716
push dword [0x4537f6ec]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x453039ae
and byte [0x4537f1d8], al
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x5b0]
push ebx
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x5b0]
push 0
push dword [0x4537f6f4]
push eax
call fcn.45311e6a
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor ebx, ebx
jmp 0x453039e9
push ebx
push 0x1d717
call sym.HHA.dll_Ordinal_15
call fcn.45311e6a
cmp eax, ebx
je 0x45303a0d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45303a0d
push ebx
push ebx
push 0x10
call fcn.45311e6a
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
call fcn.45342970
pop ecx
pop esi
pop edi
pop ebx
leave
ret 0xc