Function at 0x401f98
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x44f0]
mov eax, 0x4574
call fcn.00403370
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp + 0x44ec], eax
push ebx
push esi
push edi
push 0x104
mov esi, 0x409d60
xor ebx, ebx
push esi
push ebx
mov dword [ebp + 0x78], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [ebp + 0x80]
push ecx
push 0x40
lea ecx, [ebp + 0x84]
push ecx
push eax
mov dword [0x40602c], eax
call esi
test eax, eax
je 0x40202e
cmp dword [ebp + 0x80], 0x40
jne 0x40202e
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push dword [ebp + 0xc0]
push dword [0x40602c]
call edi
mov dword [ebp + 0x7c], eax
cmp eax, 0xffffffff
jne 0x402038
push str.Could_not_read_the_source_SFX.
call fcn.00401038
push ebx
lea eax, [ebp + 0x80]
push eax
push 0xf8
lea eax, [ebp - 0x84]
push eax
push dword [0x40602c]
call esi
test eax, eax
je 0x40202e
cmp dword [ebp + 0x80], 0xf8
jne 0x40202e
cmp dword [ebp - 0x84], 0x4550
jne 0x40202e
mov eax, 0xe0
cmp word [ebp - 0x70], ax
jne 0x40202e
xor eax, eax
mov dword [ebp + 0x74], ebx
cmp ax, word [ebp - 0x7e]
jae 0x4020ce
push ebx
lea eax, [ebp + 0x80]
push eax
push 0x28
lea eax, [ebp + 0xc4]
push eax
push dword [0x40602c]
call esi
test eax, eax
je 0x40202e
cmp dword [ebp + 0x80], 0x28
jne 0x40202e
mov eax, dword [ebp + 0xd4]
mov ecx, dword [ebp + 0xd8]
add eax, ecx
cmp dword [ebp + 0x7c], eax
jae 0x4020c2
mov dword [ebp + 0x7c], eax
movzx eax, word [ebp - 0x7e]
inc dword [ebp + 0x74]
cmp dword [ebp + 0x74], eax
jl 0x402086
push ebx
push ebx
push dword [ebp + 0x7c]
push dword [0x40602c]
call edi
mov dword [ebp + 0x7c], eax
cmp eax, 0xffffffff
je 0x40202e
push ebx
lea eax, [ebp + 0x80]
push eax
push 0x3fff
lea eax, [ebp + 0xec]
push eax
push dword [0x40602c]
call esi
test eax, eax
je 0x40202e
mov eax, dword [ebp + 0x80]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.Unnamed_Archive
push 0x406458
mov byte [ebp + eax + 0xec], bl
call edi
cmp dword [ebp + 0x80], 4
jb 0x402345
mov esi, 0x404598
mov edi, dword [ebp + 0x78]
push 4
lea edi, [ebp + edi + 0xec]
push str.MSCF
push edi
call fcn.004016c0
add esp, 0xc
test eax, eax
je 0x40233f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 0x78]
lea eax, [ecx + eax + 1]
mov dword [ebp + 0x78], eax
lea eax, [ebp + 0x40ec]
push eax
push ebx
push esi
push edi
call fcn.0040112c
add esp, 0x10
cmp byte [eax], bl
je 0x40232d
push str.Delete
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4021b0
movsx eax, byte [edi + 7]
and eax, 0xf
mov dword [0x409378], eax
jmp 0x40232d
push str.NoGUI
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4021d7
movsx eax, byte [edi + 6]
and eax, 0xf
mov dword [0x409364], eax
jmp 0x40232d
push str.Debug
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4021fe
movsx eax, byte [edi + 6]
and eax, 0xf
mov dword [0x40936c], eax
jmp 0x40232d
push str.Name
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40221e
push 0x406458
jmp 0x4022e1
push str.Exec
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40223e
push 0x406558
jmp 0x4022e1
push str.DefaultPath
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40225e
push 0x409ae0
jmp 0x4022e1
push str.Intro
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40227b
push 0x4096c0
jmp 0x4022e1
push str.AutoExtract
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4022a2
movsx eax, byte [edi + 0xc]
and eax, 0xf
mov dword [0x406454], eax
jmp 0x40232d
push str.OpenFolder
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4022c6
movsx eax, byte [edi + 0xb]
and eax, 0xf
mov dword [0x40665c], eax
jmp 0x40232d
push 0x404538
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4022ef
push 0x406660
push 1
push esi
push edi
call fcn.0040112c
add esp, 0x10
jmp 0x40232d
push str.Shortcut
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40232d
lea eax, [ebp + 0x40ec]
push eax
push 1
push esi
push edi
call fcn.0040112c
add esp, 0x10
lea eax, [ebp + 0x40ec]
push eax
push ebx
push ebx
push dword [0x406028]
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [ebp + 0x78]
add eax, 4
cmp eax, dword [ebp + 0x80]
jbe 0x40213c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0x78]
lea ecx, [eax + 4]
cmp ecx, dword [ebp + 0x80]
jbe 0x40235d
push str.Could_not_get_file_info._This_archive_is_likely_corrupted.
jmp 0x402033
mov ecx, dword [ebp + 0x7c]
push ebx
push dword [0x40602c]
add eax, ecx
mov dword [0x409370], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
sub eax, dword [0x409370]
mov dword [0x409374], eax
cmp byte [0x409ae0], bl
jne 0x4023ab
cmp dword [0x406454], 1
jne 0x40239f
push str._temp_
mov esi, 0x409ae0
push esi
call edi
jmp 0x4023b0
push str._curdir_
push 0x409ae0
call edi
mov esi, 0x409ae0
call fcn.00401f3a
push 0x104
push esi
call fcn.004012bb
push esi
call fcn.004016ec
add esp, 0xc
push esi
mov esi, 0x409c00
push esi
call edi
cmp dword [0x406454], 1
jne 0x4023f8
push 0x404440
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call fcn.00401588
pop ecx
mov dword [section..data], 3
mov ecx, dword [ebp + 0x44ec]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403355
add ebp, 0x44f0
leave
ret