Function at 0xf0082fd
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0xf062038]
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 0xf008340
cmp eax, esi
jne 0xf008346
and ecx, 0xff
test ecx, 0xffffff80
je 0xf008358
push esi
call sym.ntvdm.exe_setCF
push 5
jmp 0xf008381
cmp eax, edi
je 0xf008360
cmp eax, esi
jne 0xf00839c
cmp ecx, 8
jne 0xf00839c
lea eax, [ebx + 3]
push eax
xor eax, eax
mov al, byte [ebx]
push eax
call fcn.0f04af31
mov ebx, eax
cmp bx, di
je 0xf00838b
push esi
call sym.ntvdm.exe_setCF
push ebx
call sym.ntvdm.exe_setAX
jmp 0xf0085b2
push edi
call sym.ntvdm.exe_setAX
push edi
call sym.ntvdm.exe_setBP
jmp 0xf008597
test cl, cl
jne 0xf0083b2
mov dword [ebp - 0x110], 0x80
mov ecx, dword [ebp - 0x110]
jmp 0xf0083bb
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 0xf008547
cmp dword [ebp - 0x11c], edi
je 0xf008436
test byte [ebp - 0x109], 0x40
je 0xf008436
push ebx
call sym.ntvdm.exe_IsCdRomFile
test eax, eax
je 0xf008436
and byte [ebp - 0x109], 0xbf
mov dword [ebp - 0x11c], edi
jmp 0xf00852b
cmp dword [ebp - 0x114], edi
je 0xf0085a6
push 0x2e
push ebx
call fcn.0f056f40
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0xf0085a6
push 0xf003660
push esi
call sub.ntdll.dll__strcmpi
test eax, eax
pop ecx
pop ecx
je 0xf00848d
push 0xf003658
push esi
call sub.ntdll.dll__strcmpi
test eax, eax
pop ecx
pop ecx
je 0xf00848d
push 0xf003650
push esi
call sub.ntdll.dll__strcmpi
test eax, eax
pop ecx
pop ecx
jne 0xf0085a6
push ebx
call fcn.0f04fdd9
test eax, eax
je 0xf0084ae
push edi
push edi
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [ebp - 0x114], edi
jmp 0xf00852b
push 0xf003660
push esi
call sub.ntdll.dll__strcmpi
test eax, eax
pop ecx
pop ecx
jne 0xf0085a6
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 0xf0084ef
mov esi, 0xf003650
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x108]
push eax
movsb byte es:[edi], byte [esi]
call fcn.0f04fdd9
test eax, eax
je 0xf0085a6
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.0f008238
mov esi, eax
cmp esi, 0xffffffff
je 0xf008409
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 0xf00859f
cmp dword [ebp - 0x120], edi
jne 0xf00859f
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 0xf0085b2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov al, byte [ebx]
push eax
push 0xffffffffffffffff
call fcn.0f00807d
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0f01b9b9
leave
ret 4