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

Disassembly:
push ebp
lea ebp, [esp - 0x44f0]
mov eax, 0x4574
call fcn.004033e0
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 0x4020a5
cmp dword [ebp + 0x80], 0x40
jne 0x4020a5
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 0x4020af
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 0x4020a5
cmp dword [ebp + 0x80], 0xf8
jne 0x4020a5
cmp dword [ebp - 0x84], 0x4550
jne 0x4020a5
mov eax, 0xe0
cmp word [ebp - 0x70], ax
jne 0x4020a5
xor eax, eax
mov dword [ebp + 0x74], ebx
cmp ax, word [ebp - 0x7e]
jae 0x402145
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 0x4020a5
cmp dword [ebp + 0x80], 0x28
jne 0x4020a5
mov eax, dword [ebp + 0xd4]
mov ecx, dword [ebp + 0xd8]
add eax, ecx
cmp dword [ebp + 0x7c], eax
jae 0x402139
mov dword [ebp + 0x7c], eax
movzx eax, word [ebp - 0x7e]
inc dword [ebp + 0x74]
cmp dword [ebp + 0x74], eax
jl 0x4020fd
push ebx
push ebx
push dword [ebp + 0x7c]
push dword [0x40602c]
call edi
mov dword [ebp + 0x7c], eax
cmp eax, 0xffffffff
je 0x4020a5
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 0x4020a5
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 0x4023bc
mov esi, 0x4045f8
mov edi, dword [ebp + 0x78]
push 4
lea edi, [ebp + edi + 0xec]
push str.MSCF
push edi
call fcn.00401737
add esp, 0xc
test eax, eax
je 0x4023b6
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 0x4023a4
push str.Delete
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402227
movsx eax, byte [edi + 7]
and eax, 0xf
mov dword [0x409378], eax
jmp 0x4023a4
push str.NoGUI
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40224e
movsx eax, byte [edi + 6]
and eax, 0xf
mov dword [0x409364], eax
jmp 0x4023a4
push str.Debug
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402275
movsx eax, byte [edi + 6]
and eax, 0xf
mov dword [0x40936c], eax
jmp 0x4023a4
push str.Name
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402295
push 0x406458
jmp 0x402358
push str.Exec
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4022b5
push 0x406558
jmp 0x402358
push str.DefaultPath
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4022d5
push 0x409ae0
jmp 0x402358
push str.Intro
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4022f2
push 0x4096c0
jmp 0x402358
push str.AutoExtract
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402319
movsx eax, byte [edi + 0xc]
and eax, 0xf
mov dword [0x406454], eax
jmp 0x4023a4
push str.OpenFolder
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40233d
movsx eax, byte [edi + 0xb]
and eax, 0xf
mov dword [0x40665c], eax
jmp 0x4023a4
push 0x404598
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402366
push 0x406660
push 1
push esi
push edi
call fcn.0040112c
add esp, 0x10
jmp 0x4023a4
push str.Shortcut
lea eax, [ebp + 0x40ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4023a4
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 0x4021b3
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0x78]
lea ecx, [eax + 4]
cmp ecx, dword [ebp + 0x80]
jbe 0x4023d4
push str.Could_not_get_file_info._This_archive_is_likely_corrupted.
jmp 0x4020aa
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 0x402422
cmp dword [0x406454], 1
jne 0x402416
push str._temp_
mov esi, 0x409ae0
push esi
call edi
jmp 0x402427
push str._curdir_
push 0x409ae0
call edi
mov esi, 0x409ae0
call fcn.00401fb1
push 0x104
push esi
call fcn.004012bb
push esi
call fcn.00401763
add esp, 0xc
push esi
mov esi, 0x409c00
push esi
call edi
cmp dword [0x406454], 1
jne 0x40246f
push 0x4044a0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call fcn.004015ff
pop ecx
mov dword [section..data], 3
mov ecx, dword [ebp + 0x44ec]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004033d1
add ebp, 0x44f0
leave
ret