Function at 0x417c68
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
mov eax, 0x4ab3cc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
call fcn.00497028
mov dword [ebp - 0x2c], 1
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.004a10cc
inc dword [ebp - 0x2c]
mov word [ebp - 0x38], 8
mov ebx, dword [edi + 0x200]
test ebx, ebx
je 0x417e4a
push ebx
call fcn.0042218c
pop ecx
test al, al
je 0x417e12
push 0x33
xor eax, eax
mov word [ebp - 0x38], 0x20
mov dword [ebp - 8], eax
mov eax, edi
inc dword [ebp - 0x2c]
lea edx, [ebp - 8]
call fcn.00469a20
cmp dword [ebp - 8], 0
je 0x417cdb
mov edx, dword [ebp - 8]
jmp 0x417ce0
mov edx, 0x4ab20d
push edx
mov edx, 0x4ab1f7
lea eax, [ebp - 0xc]
call fcn.004a1094
inc dword [ebp - 0x2c]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x10]
inc dword [ebp - 0x2c]
lea edx, [ebp + 0xc]
call fcn.004a1364
lea eax, [ebp - 0x10]
push eax
mov edx, 0x4ab209
lea eax, [ebp - 0x14]
call fcn.004a1094
mov edx, eax
inc dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
inc dword [ebp - 0x2c]
pop eax
call fcn.004a1364
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x1c]
call fcn.004a10cc
mov esi, eax
inc dword [ebp - 0x2c]
cmp dword [esi], 0
je 0x417d44
mov eax, dword [esi]
jmp 0x417d49
mov eax, 0x4ab20c
push eax
mov eax, edi
call fcn.0046fbac
push eax
call sub.user32.dll_MessageBoxA
mov ebx, eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004a130c
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004a130c
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004a130c
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004a130c
dec dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a130c
dec dword [ebp - 0x2c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a130c
mov word [ebp - 0x38], 0x14
sub ebx, 2
je 0x417de6
sub ebx, 4
jne 0x417e0c
mov eax, dword [edi + 0x200]
test eax, eax
je 0x417dda
push eax
call fcn.00421eb0
pop ecx
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0xb4]
jmp 0x417e0c
mov eax, 0xfffffffe
mov edx, 2
push eax
lea eax, [ebp + 0xc]
dec dword [ebp - 0x2c]
call fcn.004a130c
pop eax
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
jmp 0x4181c0
mov word [ebp - 0x38], 8
lea edx, [edi + 0x208]
lea eax, [ebp + 0xc]
call fcn.004a13f0
test al, al
je 0x417e4a
mov eax, 0xfffffffe
mov edx, 2
push eax
lea eax, [ebp + 0xc]
dec dword [ebp - 0x2c]
call fcn.004a130c
pop eax
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
jmp 0x4181c0
xor ebx, ebx
mov word [ebp - 0x38], 8
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
cmp dword [ebp + 0xc], 0
je 0x417e6f
mov eax, dword [ebp + 0xc]
jmp 0x417e74
mov eax, 0x4ab20e
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x417ee9
call sub.kernel32.dll_GetLastError
cmp eax, 5
je 0x417e92
cmp eax, 0x20
jne 0x417ebd
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
cmp dword [ebp + 0xc], 0
je 0x417eaf
mov edx, dword [ebp + 0xc]
jmp 0x417eb4
mov edx, 0x4ab20f
push edx
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x417ee7
or eax, 0xffffffff
mov edx, 2
push eax
lea eax, [ebp + 0xc]
dec dword [ebp - 0x2c]
call fcn.004a130c
pop eax
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
jmp 0x4181c0
mov bl, 1
push 0
mov eax, dword [ebp - 0x4c]
push eax
call sub.kernel32.dll_GetFileSize
cmp eax, 0x7fffffff
jbe 0x417f2a
mov edx, dword [ebp - 0x4c]
push edx
call sub.kernel32.dll_CloseHandle
mov eax, 0xfffffffe
mov edx, 2
push eax
lea eax, [ebp + 0xc]
dec dword [ebp - 0x2c]
call fcn.004a130c
pop eax
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
jmp 0x4181c0
push edi
call sym.HexCmp.exe__THexMemo_CloseFile_qv
pop ecx
test eax, eax
je 0x417f62
mov ecx, dword [ebp - 0x4c]
push ecx
call sub.kernel32.dll_CloseHandle
or eax, 0xffffffff
mov edx, 2
push eax
lea eax, [ebp + 0xc]
dec dword [ebp - 0x2c]
call fcn.004a130c
pop eax
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
jmp 0x4181c0
mov word [ebp - 0x38], 0x2c
push 0x40
call fcn.00496388
pop ecx
mov dword [ebp - 0x20], eax
test eax, eax
je 0x417f98
mov word [ebp - 0x38], 0x44
mov edx, dword [ebp - 0x4c]
push edx
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0042108c
add esp, 8
mov word [ebp - 0x38], 0x38
mov esi, dword [ebp - 0x20]
jmp 0x417f9b
mov esi, dword [ebp - 0x20]
mov word [ebp - 0x38], 8
jmp 0x418053
mov dword [edi + 0x200], esi
lea edx, [ebp + 0xc]
lea esi, [edi + 0x208]
mov eax, esi
call fcn.004a133c
mov byte [edi + 0x20c], bl
mov edx, dword [ebp - 0x4c]
mov dword [edi + 0x1fc], edx
mov ecx, dword [edi + 0x200]
push ecx
call fcn.00421ea4
mov ebx, eax
pop ecx
mov dword [edi + 0x204], ebx
mov dword [edi + 0x1f8], ebx
xor eax, eax
xor edx, edx
mov dword [edi + 0x214], eax
mov eax, esi
mov byte [edi + 0x218], 0
mov dword [edi + 0x210], edx
lea edx, [ebp + 0xc]
call fcn.004a133c
mov dword [ebp - 0x68], 0x1c
mov dword [ebp - 0x64], 0x17
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x54], eax
mov eax, edi
call fcn.00469484
cdq
idiv dword [edi + 0x24c]
mov dword [ebp - 0x58], eax
mov ecx, 0x4d
cmp byte [edi + 0x248], 0
jne 0x4180ee
add ecx, 0xffffffee
mov dword [ebp - 0x5c], ecx
push 1
lea eax, [ebp - 0x68]
push eax
push 0
mov eax, edi
call fcn.0046fbac
push eax
call sub.user32.dll_SetScrollInfo
mov eax, edi
call fcn.004694c8
mov edx, dword [edi + 0x250]
add edx, edx
sub eax, edx
cdq
idiv dword [edi + 0x250]
dec eax
mov dword [ebp - 0x58], eax
mov eax, dword [edi + 0x1f8]
test eax, eax
jns 0x41812f
add eax, 0xf
sar eax, 4
inc eax
cmp eax, 0x7fff
jg 0x41815a
mov dword [edi + 0x258], 0x3f800000
mov eax, dword [edi + 0x1f8]
test eax, eax
jns 0x418151
add eax, 0xf
sar eax, 4
inc eax
mov dword [ebp - 0x5c], eax
jmp 0x41818d
mov edx, dword [edi + 0x1f8]
test edx, edx
jns 0x418167
add edx, 0xf
sar edx, 4
inc edx
mov dword [ebp - 0x6c], edx
fild dword [ebp - 0x6c]
fld xword [0x4181c8]
fmulp st(1)
fstp dword [edi + 0x258]
mov dword [ebp - 0x5c], 0x7fff
mov dword [ebp - 0x58], 1
push 1
lea ecx, [ebp - 0x68]
push ecx
push 1
mov eax, edi
call fcn.0046fbac
push eax
call sub.user32.dll_SetScrollInfo
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp + 0xc]
dec dword [ebp - 0x2c]
call fcn.004a130c
pop eax
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret