Function at 0x4226f8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff40
mov eax, 0x4c8d80
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
call fcn.004ae0a4
mov dword [ebp - 0x38], 1
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.004bad38
inc dword [ebp - 0x38]
mov word [ebp - 0x44], 8
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 0x204]
test ebx, ebx
je 0x4228e9
push ebx
mov eax, dword [ebx]
call dword [eax + 0x20]
pop ecx
test al, al
je 0x4228ae
push 0x33
xor edx, edx
mov word [ebp - 0x44], 0x20
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0xc]
inc dword [ebp - 0x38]
mov eax, dword [ebp + 8]
call fcn.00474bfc
cmp dword [ebp - 0xc], 0
je 0x422772
mov ecx, dword [ebp - 0xc]
jmp 0x422777
mov ecx, 0x4c8ae9
push ecx
mov edx, 0x4c8ad3
lea eax, [ebp - 0x10]
call fcn.004bad00
inc dword [ebp - 0x38]
xor edx, edx
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x14]
inc dword [ebp - 0x38]
lea edx, [ebp + 0xc]
call fcn.004bafd4
lea eax, [ebp - 0x14]
push eax
mov edx, 0x4c8ae5
lea eax, [ebp - 0x18]
call fcn.004bad00
mov edx, eax
inc dword [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x1c]
inc dword [ebp - 0x38]
pop eax
call fcn.004bafd4
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x20]
call fcn.004bad38
mov ebx, eax
inc dword [ebp - 0x38]
cmp dword [ebx], 0
je 0x4227db
mov eax, dword [ebx]
jmp 0x4227e0
mov eax, 0x4c8ae8
push eax
mov eax, dword [ebp + 8]
call fcn.0047ad08
push eax
call sub.user32.dll_MessageBoxA
mov ebx, eax
dec dword [ebp - 0x38]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004baf7c
dec dword [ebp - 0x38]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004baf7c
dec dword [ebp - 0x38]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004baf7c
dec dword [ebp - 0x38]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004baf7c
dec dword [ebp - 0x38]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004baf7c
dec dword [ebp - 0x38]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004baf7c
mov word [ebp - 0x44], 0x14
sub ebx, 2
je 0x422882
sub ebx, 4
jne 0x4228a8
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x204]
test eax, eax
je 0x422875
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
pop ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0xb4]
jmp 0x4228a8
mov eax, 0xfffffffe
mov edx, 2
push eax
lea eax, [ebp + 0xc]
dec dword [ebp - 0x38]
call fcn.004baf7c
pop eax
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
jmp 0x422eb3
mov word [ebp - 0x44], 8
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
add edx, 0x210
call fcn.004bb060
test al, al
je 0x4228e9
mov eax, 0xfffffffe
mov edx, 2
push eax
lea eax, [ebp + 0xc]
dec dword [ebp - 0x38]
call fcn.004baf7c
pop eax
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
jmp 0x422eb3
mov bl, byte [ebp + 0x14]
mov word [ebp - 0x44], 8
test bl, bl
jne 0x422923
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
cmp dword [ebp + 0xc], 0
je 0x422913
mov eax, dword [ebp + 0xc]
jmp 0x422918
mov eax, 0x4c8aea
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x58], eax
jmp 0x42294e
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
cmp dword [ebp + 0xc], 0
je 0x422940
mov edx, dword [ebp + 0xc]
jmp 0x422945
mov edx, 0x4c8aeb
push edx
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0xffffffff
jne 0x4229ba
call sub.kernel32.dll_GetLastError
cmp eax, 5
je 0x422963
cmp eax, 0x20
jne 0x42298e
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
cmp dword [ebp + 0xc], 0
je 0x422980
mov eax, dword [ebp + 0xc]
jmp 0x422985
mov eax, 0x4c8aec
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0xffffffff
jne 0x4229b8
or eax, 0xffffffff
mov edx, 2
push eax
lea eax, [ebp + 0xc]
dec dword [ebp - 0x38]
call fcn.004baf7c
pop eax
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
jmp 0x422eb3
mov bl, 1
xor eax, eax
lea edx, [ebp - 0x5c]
mov dword [ebp - 0x5c], eax
push edx
mov ecx, dword [ebp - 0x58]
push ecx
call sub.kernel32.dll_GetFileSize
xor edx, edx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x5c]
xor edx, edx
mov edx, eax
xor eax, eax
add dword [ebp - 0x64], eax
adc dword [ebp - 0x60], edx
cmp dword [ebp - 0x60], 0
jne 0x4229f1
cmp dword [ebp - 0x64], 0xffffffff
jbe 0x422a22
jmp 0x4229f3
jle 0x422a22
mov ecx, dword [ebp - 0x58]
push ecx
call sub.kernel32.dll_CloseHandle
mov eax, 0xfffffffe
mov edx, 2
push eax
lea eax, [ebp + 0xc]
dec dword [ebp - 0x38]
call fcn.004baf7c
pop eax
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
jmp 0x422eb3
mov ecx, dword [ebp + 8]
push ecx
call sym.HexCmp.exe__THexMemo_CloseFile_qv
pop ecx
test eax, eax
je 0x422a5d
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
or eax, 0xffffffff
mov edx, 2
push eax
lea eax, [ebp + 0xc]
dec dword [ebp - 0x38]
call fcn.004baf7c
pop eax
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
jmp 0x422eb3
mov word [ebp - 0x44], 0x2c
cmp esi, 1
jne 0x422a9f
push 0x38
call fcn.004ad03c
pop ecx
mov dword [ebp - 0x24], eax
test eax, eax
je 0x422a98
mov word [ebp - 0x44], 0x44
mov edx, dword [ebp - 0x58]
push edx
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0042f4e0
add esp, 8
mov word [ebp - 0x44], 0x38
mov esi, dword [ebp - 0x24]
jmp 0x422a9b
mov esi, dword [ebp - 0x24]
mov bl, 1
jmp 0x422b0e
cmp esi, 2
jne 0x422adb
push 0x38
call fcn.004ad03c
pop ecx
mov dword [ebp - 0x28], eax
test eax, eax
je 0x422ad4
mov word [ebp - 0x44], 0x5c
mov edx, dword [ebp - 0x58]
push edx
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0043a188
add esp, 8
mov word [ebp - 0x44], 0x50
mov esi, dword [ebp - 0x28]
jmp 0x422ad7
mov esi, dword [ebp - 0x28]
mov bl, 1
jmp 0x422b0e
push 0x50
call fcn.004ad03c
pop ecx
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x422b0b
mov word [ebp - 0x44], 0x74
mov edx, dword [ebp - 0x58]
push edx
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0042c810
add esp, 8
mov word [ebp - 0x44], 0x68
mov esi, dword [ebp - 0x2c]
jmp 0x422b0e
mov esi, dword [ebp - 0x2c]
mov word [ebp - 0x44], 8
jmp 0x422bf2
mov edx, dword [ebp + 8]
mov dword [edx + 0x204], esi
lea edx, [ebp + 0xc]
mov esi, dword [ebp + 8]
add esi, 0x210
mov eax, esi
call fcn.004bafac
mov edx, dword [ebp + 8]
mov byte [edx + 0x214], bl
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x58]
mov dword [ecx + 0x200], eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x204]
push ecx
mov eax, dword [ecx]
call dword [eax + 4]
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x208], eax
mov dword [ecx + 0x20c], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov ecx, dword [eax + 0x208]
mov dword [edx + 0x1f8], ecx
mov ecx, dword [eax + 0x20c]
mov dword [edx + 0x1fc], ecx
mov edx, dword [ebp + 8]
mov dword [edx + 0x220], 0
mov dword [edx + 0x224], 0
mov eax, dword [ebp + 8]
mov byte [eax + 0x228], 0
mov edx, dword [ebp + 8]
mov eax, esi
mov dword [edx + 0x218], 0
mov dword [edx + 0x21c], 0
lea edx, [ebp + 0xc]
call fcn.004bafac
mov word [ebp - 0x44], 0x8c
lea ecx, [ebp - 0x9c]
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1f0]
call fcn.00453e20
push eax
call sub.gdi32.dll_GetTextMetricsA
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x9c]
mov dword [edx + 0x260], ecx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x88]
mov dword [eax + 0x25c], edx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x260], 0
jg 0x422cfa
mov eax, dword [ebp + 8]
mov dword [eax + 0x260], 0xa
mov edx, dword [ebp + 8]
cmp dword [edx + 0x25c], 0
jg 0x422d13
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x25c], 0xa
mov dword [ebp - 0xb8], 0x1c
mov dword [ebp - 0xb4], 0x17
xor eax, eax
xor edx, edx
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xa4], edx
mov eax, dword [ebp + 8]
call fcn.00474660
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x25c]
cdq
idiv ecx
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 8]
cmp byte [eax + 0x258], 0
je 0x422d64
mov eax, 0x4d
jmp 0x422d69
mov eax, 0x3b
mov dword [ebp - 0xac], eax
push 1
lea edx, [ebp - 0xb8]
push edx
push 0
mov eax, dword [ebp + 8]
call fcn.0047ad08
push eax
call sub.user32.dll_SetScrollInfo
mov eax, dword [ebp + 8]
call fcn.004746a4
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x260]
mov edx, dword [ebp + 8]
add ecx, ecx
sub eax, ecx
mov ecx, dword [edx + 0x260]
cdq
idiv ecx
dec eax
mov dword [ebp - 0xa8], eax
push 0
push 0x10
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x1fc]
mov eax, dword [eax + 0x1f8]
call fcn.004b38eb
add eax, 1
adc edx, 0
cmp edx, 0
jne 0x422ddc
cmp eax, 0x7fff
ja 0x422e14
jmp 0x422dde
jg 0x422e14
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x270], edx
mov dword [eax + 0x274], 0x3ff00000
push 0
push 0x10
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x1f8]
mov edx, dword [ecx + 0x1fc]
call fcn.004b38eb
inc eax
mov dword [ebp - 0xac], eax
jmp 0x422e69
push 0
push 0x10
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1f8]
mov edx, dword [edx + 0x1fc]
call fcn.004b38eb
add eax, 1
adc edx, 0
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], edx
fild qword [ebp - 0xc0]
fld xword [0x422ebc]
fmulp st(1)
mov ecx, dword [ebp + 8]
fstp qword [ecx + 0x270]
mov dword [ebp - 0xac], 0x7fff
mov dword [ebp - 0xa8], 1
push 1
lea eax, [ebp - 0xb8]
push eax
push 1
mov eax, dword [ebp + 8]
call fcn.0047ad08
push eax
call sub.user32.dll_SetScrollInfo
mov word [ebp - 0x44], 8
jmp 0x422e95
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp + 0xc]
dec dword [ebp - 0x38]
call fcn.004baf7c
pop eax
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret