Function at 0x498590
Capabilities:
Get disk information
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov edi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x498924
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004031ec
add al, 0xbf
sub al, 0x1a
jb 0x49860e
push 0xf
call sub.kernel32.dll_SetLastError
or ebx, 0xffffffff
jmp 0x4988f6
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x224]
mov edx, ebx
call fcn.00405054
lea eax, [ebp - 0x224]
mov edx, 0x498940
call fcn.00405138
mov eax, dword [ebp - 0x224]
call fcn.00405330
push eax
mov eax, dword [0x4a5384]
mov eax, dword [eax]
call eax
test eax, eax
je 0x4988f3
cmp dword [ebp - 4], 0x80000000
je 0x498868
push pe_nt_image_headers32
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push pe_nt_image_headers32
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x228]
mov edx, ebx
call fcn.00405054
lea eax, [ebp - 0x228]
mov edx, 0x498940
call fcn.00405138
mov eax, dword [ebp - 0x228]
call fcn.00405330
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4986d6
lea edx, [ebp - 0x22c]
lea eax, [ebp - 0x220]
call fcn.00409fc8
mov edx, dword [ebp - 0x22c]
mov eax, esi
call fcn.0049fba0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
jmp 0x4986e4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
jne 0x4986f6
cmp dword [ebp - 0x18], 0
jbe 0x4987c7
jmp 0x4986fc
jle 0x4987c7
mov eax, dword [edi]
mov edx, dword [edi + 4]
cmp edx, dword [ebp - 0x14]
jne 0x498711
cmp eax, dword [ebp - 0x18]
jbe 0x4987c7
jmp 0x498717
jle 0x4987c7
mov eax, dword [ebp - 0x18]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 4], eax
push 0x40
lea eax, [ebp - 0x230]
push eax
mov eax, dword [esi + 0x4d8]
mov ecx, 0x49894c
mov edx, 0x49895c
call fcn.00492f6c
mov eax, dword [ebp - 0x230]
call fcn.00405330
push eax
push 0
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x238]
push eax
mov eax, dword [esi + 0x4d8]
mov ecx, 0x498970
mov edx, 0x4989f0
call fcn.00492f6c
mov eax, dword [ebp - 0x238]
push eax
fild qword [edi]
fdiv dword [0x498a04]
fstp xword [ebp - 0x24c]
wait
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x240], eax
mov byte [ebp - 0x23c], 3
lea ecx, [ebp - 0x240]
mov eax, esi
pop edx
call fcn.0049edf0
mov eax, dword [ebp - 0x234]
call fcn.00405330
mov edx, eax
mov eax, dword [0x4a54ac]
mov eax, dword [eax]
pop ecx
call fcn.0046b734
jmp 0x498861
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
push edx
push eax
push 0
push 0x64
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00405e08
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov eax, dword [edi]
mov edx, dword [edi + 4]
cmp edx, dword [esp + 4]
jne 0x4987fd
cmp eax, dword [esp]
pop edx
pop eax
jae 0x498861
jmp 0x498801
pop edx
pop eax
jge 0x498861
push 0x40
lea eax, [ebp - 0x250]
push eax
mov eax, dword [esi + 0x4d8]
mov ecx, 0x49894c
mov edx, 0x49895c
call fcn.00492f6c
mov eax, dword [ebp - 0x250]
call fcn.00405330
push eax
lea eax, [ebp - 0x254]
push eax
mov eax, dword [esi + 0x4d8]
mov ecx, 0x498a10
mov edx, 0x498a54
call fcn.00492f6c
mov eax, dword [ebp - 0x254]
call fcn.00405330
mov edx, eax
mov eax, dword [0x4a54ac]
mov eax, dword [eax]
pop ecx
call fcn.0046b734
mov esi, 2
jmp 0x49886d
mov esi, 3
mov dword [ebp - 0x1c], 0xa8000100
cmp byte [ebp + 0x10], 0
jne 0x498881
or dword [ebp - 0x1c], 0x4000000
mov eax, dword [ebp + 8]
mov dword [eax], 0x200
push 0
mov eax, dword [ebp - 0x1c]
push eax
push esi
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x25c]
mov edx, ebx
call fcn.00405054
push dword [ebp - 0x25c]
push 0x498940
push 0x498a70
lea eax, [ebp - 0x258]
mov edx, 3
call fcn.004051f0
mov eax, dword [ebp - 0x258]
call fcn.00405330
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4988f6
cmp esi, 3
jne 0x4988f6
mov eax, edi
add eax, 4
push eax
push ebx
call sub.kernel32.dll_GetFileSize_1
mov dword [edi], eax
jmp 0x4988f6
or ebx, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49892b
lea eax, [ebp - 0x25c]
mov edx, 4
call fcn.00404e90
lea eax, [ebp - 0x238]
mov edx, 6
call fcn.00404e90
ret