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

Disassembly:
push ebp
lea ebp, [esp - 0x44f0]
mov eax, 0x4574
call fcn.00403540
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 0x402202
cmp dword [ebp + 0x80], 0x40
jne 0x402202
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 0x40220c
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 0x402202
cmp dword [ebp + 0x80], 0xf8
jne 0x402202
cmp dword [ebp - 0x84], 0x4550
jne 0x402202
mov eax, 0xe0
cmp word [ebp - 0x70], ax
jne 0x402202
xor eax, eax
mov dword [ebp + 0x74], ebx
cmp ax, word [ebp - 0x7e]
jae 0x4022a2
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 0x402202
cmp dword [ebp + 0x80], 0x28
jne 0x402202
mov eax, dword [ebp + 0xd4]
mov ecx, dword [ebp + 0xd8]
add eax, ecx
cmp dword [ebp + 0x7c], eax
jae 0x402296
mov dword [ebp + 0x7c], eax
movzx eax, word [ebp - 0x7e]
inc dword [ebp + 0x74]
cmp dword [ebp + 0x74], eax
jl 0x40225a
push ebx
push ebx
push dword [ebp + 0x7c]
push dword [0x40602c]
call edi
mov dword [ebp + 0x7c], eax
cmp eax, 0xffffffff
je 0x402202
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 0x402202
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 0x402519
mov esi, 0x404620
mov edi, dword [ebp + 0x78]
push 4
lea edi, [ebp + edi + 0xec]
push str.MSCF
push edi
call fcn.00401894
add esp, 0xc
test eax, eax
je 0x402513
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 0x402501
push str.Delete
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402384
movsx eax, byte [edi + 7]
and eax, 0xf
mov dword [0x409378], eax
jmp 0x402501
push str.NoGUI
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4023ab
movsx eax, byte [edi + 6]
and eax, 0xf
mov dword [0x409364], eax
jmp 0x402501
push str.Debug
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4023d2
movsx eax, byte [edi + 6]
and eax, 0xf
mov dword [0x40936c], eax
jmp 0x402501
push str.Name
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4023f2
push 0x406458
jmp 0x4024b5
push str.Exec
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402412
push 0x406558
jmp 0x4024b5
push str.DefaultPath
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402432
push 0x409ae0
jmp 0x4024b5
push str.Intro
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40244f
push 0x4096c0
jmp 0x4024b5
push str.AutoExtract
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402476
movsx eax, byte [edi + 0xc]
and eax, 0xf
mov dword [0x406454], eax
jmp 0x402501
push str.OpenFolder
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40249a
movsx eax, byte [edi + 0xb]
and eax, 0xf
mov dword [0x40665c], eax
jmp 0x402501
push 0x4045c0
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4024c3
push 0x406660
push 1
push esi
push edi
call fcn.0040112c
add esp, 0x10
jmp 0x402501
push str.Shortcut
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402501
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 0x402310
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0x78]
lea ecx, [eax + 4]
cmp ecx, dword [ebp + 0x80]
jbe 0x402531
push str.Could_not_get_file_info._This_archive_is_likely_corrupted.
jmp 0x402207
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 0x40257f
cmp dword [0x406454], 1
jne 0x402573
push str._temp_
mov esi, 0x409ae0
push esi
call edi
jmp 0x402584
push str._curdir_
push 0x409ae0
call edi
mov esi, 0x409ae0
call fcn.0040210e
push 0x104
push esi
call fcn.004012bb
push esi
call fcn.004018c0
add esp, 0xc
push esi
mov esi, 0x409c00
push esi
call edi
cmp dword [0x406454], 1
jne 0x4025cc
push 0x4044c8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call fcn.0040175c
pop ecx
mov dword [section..data], 3
mov ecx, dword [ebp + 0x44ec]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040352e
add ebp, 0x44f0
leave
ret