Function at 0xf0081b7
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0xf061038]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
call sym.ntvdm.exe_getDS
movzx ebx, ax
shl ebx, 4
call sym.ntvdm.exe_getSI
movzx eax, ax
add ebx, eax
call sym.ntvdm.exe_getCX
xor esi, esi
movzx ecx, ax
mov eax, dword [ebp + 8]
xor edi, edi
inc esi
cmp eax, edi
je 0xf0081fa
cmp eax, esi
jne 0xf008200
and ecx, 0xff
test ecx, 0xffffff80
je 0xf008212
push esi
call sym.ntvdm.exe_setCF
push 5
jmp 0xf00823b
cmp eax, edi
je 0xf00821a
cmp eax, esi
jne 0xf008256
cmp ecx, 8
jne 0xf008256
lea eax, [ebx + 3]
push eax
xor eax, eax
mov al, byte [ebx]
push eax
call fcn.0f04a8b1
mov ebx, eax
cmp bx, di
je 0xf008245
push esi
call sym.ntvdm.exe_setCF
push ebx
call sym.ntvdm.exe_setAX
jmp 0xf00846c
push edi
call sym.ntvdm.exe_setAX
push edi
call sym.ntvdm.exe_setBP
jmp 0xf008451
test cl, cl
jne 0xf00826c
mov dword [ebp - 0x110], 0x80
mov ecx, dword [ebp - 0x110]
jmp 0xf008275
and ecx, 0x37
mov dword [ebp - 0x110], ecx
xor edx, edx
cmp dword [ebp + 8], edi
push edi
sete dl
push ecx
lea ecx, [ebp - 0x12c]
mov eax, 0xc0000000
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x12c], 0xc
mov dword [ebp - 0x128], edi
inc edx
push edx
push ecx
push 7
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x118], edx
push eax
jmp 0xf008401
cmp dword [ebp - 0x11c], edi
je 0xf0082f0
test byte [ebp - 0x109], 0x40
je 0xf0082f0
push ebx
call sym.ntvdm.exe_IsCdRomFile
test eax, eax
je 0xf0082f0
and byte [ebp - 0x109], 0xbf
mov dword [ebp - 0x11c], edi
jmp 0xf0083e5
cmp dword [ebp - 0x114], edi
je 0xf008460
push 0x2e
push ebx
call fcn.0f056670
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0xf008460
push 0xf0035f0
push esi
call sub.ntdll.dll__strcmpi
test eax, eax
pop ecx
pop ecx
je 0xf008347
push 0xf0035e8
push esi
call sub.ntdll.dll__strcmpi
test eax, eax
pop ecx
pop ecx
je 0xf008347
push 0xf0035e0
push esi
call sub.ntdll.dll__strcmpi
test eax, eax
pop ecx
pop ecx
jne 0xf008460
push ebx
call fcn.0f04f5a1
test eax, eax
je 0xf008368
push edi
push edi
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [ebp - 0x114], edi
jmp 0xf0083e5
push 0xf0035f0
push esi
call sub.ntdll.dll__strcmpi
test eax, eax
pop ecx
pop ecx
jne 0xf008460
push 0x41
pop ecx
lea edi, [ebp - 0x108]
rep stosd dword es:[edi], eax
mov ecx, esi
sub ecx, ebx
mov eax, ecx
shr ecx, 2
mov esi, ebx
lea edi, [ebp - 0x108]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0xf0083a9
mov esi, 0xf0035e0
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x108]
push eax
movsb byte es:[edi], byte [esi]
call fcn.0f04f5a1
test eax, eax
je 0xf008460
xor esi, esi
push esi
push esi
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [ebp - 0x114], esi
xor edi, edi
push edi
push dword [ebp - 0x110]
lea eax, [ebp - 0x12c]
push dword [ebp - 0x118]
push eax
push 7
push dword [ebp - 0x10c]
push ebx
call fcn.0f0080f2
mov esi, eax
cmp esi, 0xffffffff
je 0xf0082c3
lea eax, [ebp - 0x120]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
inc eax
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x118], eax
jne 0xf008459
cmp dword [ebp - 0x120], edi
jne 0xf008459
push edi
call sym.ntvdm.exe_setCX
push edi
call sym.ntvdm.exe_setBX
push esi
call sym.ntvdm.exe_setBP
shr esi, 0x10
push esi
call sym.ntvdm.exe_setAX
push edi
call sym.ntvdm.exe_setCF
jmp 0xf00846c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov al, byte [ebx]
push eax
push 0xffffffffffffffff
call fcn.0f007f37
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0f01b45c
leave
ret 4