Function at 0xf0082bd
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 0xf008300
cmp eax, esi
jne 0xf008306
and ecx, 0xff
test ecx, 0xffffff80
je 0xf008318
push esi
call sym.ntvdm.exe_setCF
push 5
jmp 0xf008341
cmp eax, edi
je 0xf008320
cmp eax, esi
jne 0xf00835c
cmp ecx, 8
jne 0xf00835c
lea eax, [ebx + 3]
push eax
xor eax, eax
mov al, byte [ebx]
push eax
call fcn.0f04ae01
mov ebx, eax
cmp bx, di
je 0xf00834b
push esi
call sym.ntvdm.exe_setCF
push ebx
call sym.ntvdm.exe_setAX
jmp 0xf008572
push edi
call sym.ntvdm.exe_setAX
push edi
call sym.ntvdm.exe_setBP
jmp 0xf008557
test cl, cl
jne 0xf008372
mov dword [ebp - 0x110], 0x80
mov ecx, dword [ebp - 0x110]
jmp 0xf00837b
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 0xf008507
cmp dword [ebp - 0x11c], edi
je 0xf0083f6
test byte [ebp - 0x109], 0x40
je 0xf0083f6
push ebx
call sym.ntvdm.exe_IsCdRomFile
test eax, eax
je 0xf0083f6
and byte [ebp - 0x109], 0xbf
mov dword [ebp - 0x11c], edi
jmp 0xf0084eb
cmp dword [ebp - 0x114], edi
je 0xf008566
push 0x2e
push ebx
call fcn.0f056c40
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0xf008566
push 0xf003640
push esi
call sub.ntdll.dll__strcmpi
test eax, eax
pop ecx
pop ecx
je 0xf00844d
push 0xf003638
push esi
call sub.ntdll.dll__strcmpi
test eax, eax
pop ecx
pop ecx
je 0xf00844d
push 0xf003630
push esi
call sub.ntdll.dll__strcmpi
test eax, eax
pop ecx
pop ecx
jne 0xf008566
push ebx
call fcn.0f04fb76
test eax, eax
je 0xf00846e
push edi
push edi
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [ebp - 0x114], edi
jmp 0xf0084eb
push 0xf003640
push esi
call sub.ntdll.dll__strcmpi
test eax, eax
pop ecx
pop ecx
jne 0xf008566
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 0xf0084af
mov esi, 0xf003630
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x108]
push eax
movsb byte es:[edi], byte [esi]
call fcn.0f04fb76
test eax, eax
je 0xf008566
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.0f0081f8
mov esi, eax
cmp esi, 0xffffffff
je 0xf0083c9
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 0xf00855f
cmp dword [ebp - 0x120], edi
jne 0xf00855f
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 0xf008572
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov al, byte [ebx]
push eax
push 0xffffffffffffffff
call fcn.0f00803d
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0f01b780
leave
ret 4