Function at 0x441620
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x60
call fcn.00440230
mov dword [esp + 4], 0x445b4b
mov dword [esp], 2
call sub.msvcrt.dll_setlocale
lea eax, [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp + 8]
mov dword [esp], eax
call fcn.004392d0
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp ebx, 1
jle 0x4416f1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x442040
mov dword [esp + 8], str.ADHINR:SVWacdeghi:lnp:rstuvw::x:z
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004395f0
cmp eax, 0xffffffff
je 0x441a6a
cmp eax, 0x68
je 0x4419e4
lea esi, [esi]
jg 0x441700
cmp eax, 0x52
je 0x4419d5
nop
lea esi, [esi]
jg 0x441740
cmp eax, 0x44
je 0x4419c9
nop
jle 0x4417fd
cmp eax, 0x49
je 0x4419bd
cmp eax, 0x4e
je 0x4419aa
cmp eax, 0x48
je 0x44187a
mov dword [esp + 4], eax
mov dword [esp], str.Invalid_option___c_n
call fcn.00436bb0
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
call fcn.00402600
nop
cmp eax, 0x76
je 0x4418e1
jg 0x441780
cmp eax, 0x72
nop
je 0x4418d5
jg 0x44184b
cmp eax, 0x6e
nop
je 0x4418c9
cmp eax, 0x70
je 0x4418ba
cmp eax, 0x6c
jne 0x4416e1
add dword [0x4711d0], 1
jmp 0x441666
cmp eax, 0x61
je 0x441951
jg 0x44181c
cmp eax, 0x56
je 0x441893
cmp eax, 0x57
nop
lea esi, [esi]
je 0x441887
cmp eax, 0x53
jne 0x4416e1
add dword [0x4711c8], 1
jmp 0x441666
cmp eax, 0x200
je 0x4418f3
jle 0x4417c3
cmp eax, 0x202
je 0x44192a
jl 0x441862
cmp eax, 0x203
je 0x441a43
cmp eax, 0x204
jne 0x4416e1
mov dword [0x472120], 1
jmp 0x441666
cmp eax, 0x78
je 0x44189f
jge 0x441a05
mov eax, dword [0x4728c4]
add dword [0x4711f4], 1
test eax, eax
je 0x441deb
mov dword [esp], eax
mov dword [0x4711f8], 0
call fcn.004369c0
jmp 0x441666
cmp eax, 0x3f
je 0x4416f1
cmp eax, 0x41
je 0x44191e
test eax, eax
je 0x441666
jmp 0x4416e1
cmp eax, 0x64
nop
je 0x4418ae
jle 0x4419f0
cmp eax, 0x65
nop
je 0x441a29
cmp eax, 0x67
jne 0x4416e1
add dword [0x4711cc], 1
jmp 0x441666
cmp eax, 0x74
je 0x4419aa
jle 0x44186e
add dword [0x4711bc], 1
jmp 0x441666
add dword [0x4711fc], 1
jmp 0x441666
add dword [0x4711b4], 1
jmp 0x441666
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
call fcn.00402600
add dword [0x472cb4], 1
jmp 0x441666
add dword [0x4711d4], 1
jmp 0x441666
mov eax, 1
call fcn.00402530
jmp 0x441666
add dword [0x4711c0], 1
jmp 0x441666
mov eax, 8
call fcn.00402530
jmp 0x441666
add dword [0x4711e0], 1
jmp 0x441666
add dword [0x4711b8], 1
jmp 0x441666
mov eax, dword [str.readelf]
mov dword [esp], eax
call fcn.00424900
jmp 0x441666
mov eax, dword [0x4728c4]
add dword [0x4711f4], 1
test eax, eax
je 0x441a1a
mov dword [esp], eax
mov dword [0x4711f8], 0
call fcn.00436900
jmp 0x441666
add dword [0x4711dc], 1
jmp 0x441666
mov eax, dword [0x4728c4]
lea edx, [esp + 0x24]
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_strtoul
mov dword [0x443020], eax
jmp 0x441666
add dword [0x4711b4], 1
add dword [0x4711b8], 1
add dword [0x4711bc], 1
add dword [0x4711c0], 1
add dword [0x4711c4], 1
add dword [0x4711c8], 1
add dword [0x4711cc], 1
add dword [0x4711d0], 1
add dword [0x4711d4], 1
add dword [0x4711d8], 1
add dword [0x4711dc], 1
add dword [0x4711e0], 1
jmp 0x441666
add dword [0x4711c8], 1
add dword [0x4711e4], 1
jmp 0x441666
add dword [0x4711d8], 1
jmp 0x441666
add dword [0x4711e8], 1
jmp 0x441666
mov eax, 0x10
call fcn.00402530
jmp 0x441666
add dword [0x4711c4], 1
jmp 0x441666
cmp eax, 0x63
jne 0x4416e1
add dword [0x4711ec], 1
jmp 0x441666
cmp eax, 0x7a
jne 0x4416e1
add dword [0x4711f0], 1
jmp 0x441666
mov dword [0x4711f8], 1
jmp 0x441666
add dword [0x4711c4], 1
add dword [0x4711c8], 1
add dword [0x4711d0], 1
jmp 0x441666
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [0x4728c4]
mov dword [esp + 8], 0
mov dword [esp], eax
call sub.msvcrt.dll_strtoul
mov dword [0x472cdc], eax
jmp 0x441666
cmp dword [0x4711c0], 0
jne 0x441b06
cmp dword [0x4711b4], 0
jne 0x441b06
cmp dword [0x4711b8], 0
jne 0x441b06
cmp dword [0x4711bc], 0
jne 0x441b06
cmp dword [0x4711c8], 0
jne 0x441b06
cmp dword [0x4711d0], 0
jne 0x441b06
cmp dword [0x4711c4], 0
jne 0x441b06
cmp dword [0x4711f4], 0
jne 0x441b06
cmp dword [0x4711d4], 0
jne 0x441b06
cmp dword [0x4711d8], 0
jne 0x441b06
cmp dword [0x4711f8], 0
jne 0x441b06
cmp dword [0x4711dc], 0
jne 0x441b06
cmp dword [0x4711e0], 0
jne 0x441b06
cmp dword [0x4711cc], 0
jne 0x441b06
cmp dword [0x4711ec], 0
jne 0x441b06
cmp dword [0x4711fc], 0
je 0x4416f1
mov ebx, dword [0x4711a0]
test ebx, ebx
jne 0x441d93
mov edx, dword [ebp + 8]
mov eax, dword [0x443048]
lea ecx, [edx - 1]
cmp ecx, eax
jle 0x441d31
xor esi, esi
cmp edx, eax
mov dword [0x4711b0], 1
jle 0x441c90
xor esi, esi
jmp 0x441b65
mov dword [esp + 4], ebx
mov ebx, 1
mov dword [esp], str._s_is_not_an_ordinary_file_n
call fcn.00436bb0
mov eax, dword [0x443048]
or esi, ebx
cmp eax, dword [ebp + 8]
jge 0x441c90
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx + eax*4]
lea edx, [esp + 0x30]
add eax, 1
mov dword [esp + 4], edx
mov edx, dword [sym.imp.msvcrt.dll__stati64]
mov dword [0x443048], eax
mov dword [esp], ebx
call edx
test eax, eax
js 0x441cbc
movzx eax, word [esp + 0x36]
and ax, 0xf000
cmp ax, 0x8000
jne 0x441b40
mov dword [esp + 4], 0x44e85c
mov dword [esp], ebx
call sub.msvcrt.dll_fopen
test eax, eax
mov edi, eax
je 0x441d79
mov dword [esp + 0xc], eax
lea eax, [esp + 0x28]
mov dword [esp + 8], 1
mov dword [esp + 4], 8
mov dword [esp], eax
call sub.msvcrt.dll_fread
sub eax, 1
jne 0x441cfd
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov dword [esp + 8], 8
mov dword [esp + 4], str.__arch__n
mov dword [0x471094], edx
lea edx, [esp + 0x28]
mov dword [esp], edx
mov dword [0x471090], eax
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x441d1f
lea eax, [esp + 0x28]
mov dword [esp + 8], 8
mov dword [esp + 4], str.__thin__n
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x441d4a
cmp dword [0x4711ec], 0
jne 0x441dd6
mov dword [esp], edi
call sub.msvcrt.dll_rewind
mov eax, ebx
mov edx, edi
mov dword [0x471098], 0
mov dword [0x471204], 0
call fcn.00420e50
mov ebx, eax
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov dword [0x471090], 0
mov dword [0x471094], 0
jmp 0x441b55
mov eax, dword [0x4711a8]
test eax, eax
je 0x441ca1
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [0x4711a4]
test eax, eax
je 0x441cb2
mov dword [esp], eax
call sub.msvcrt.dll_free
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [sym.imp.msvcrt.dll__errno]
call edx
cmp dword [eax], 2
je 0x441d5f
mov edx, dword [sym.imp.msvcrt.dll__errno]
call edx
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 4], ebx
mov ebx, 1
mov dword [esp], str.Could_not_locate__s.__System_error_message:__s_n
mov dword [esp + 8], eax
call fcn.00436bb0
jmp 0x441b55
mov dword [esp + 4], ebx
mov ebx, 1
mov dword [esp], str._s:_Failed_to_read_files_magic_number_n
call fcn.00436bb0
mov dword [esp], edi
call sub.msvcrt.dll_fclose
jmp 0x441b55
mov eax, ebx
xor ecx, ecx
mov edx, edi
call fcn.00424120
mov ebx, eax
jmp 0x441c6f
cmp edx, eax
jg 0x441b3b
mov dword [esp], str.Nothing_to_do._n
call fcn.004371d0
jmp 0x4416f1
mov eax, ebx
mov ecx, 1
mov edx, edi
call fcn.00424120
mov ebx, eax
jmp 0x441c6f
mov dword [esp + 4], ebx
mov ebx, 1
mov dword [esp], str._s:_No_such_file_n
call fcn.00436bb0
jmp 0x441b55
mov dword [esp + 4], ebx
mov ebx, 1
mov dword [esp], str.Input_file__s_is_not_readable._n
call fcn.00436bb0
jmp 0x441b55
mov dword [esp], ebx
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [0x4711a4], eax
je 0x441dc5
mov edx, dword [0x4711a8]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_memcpy
mov dword [0x4711ac], ebx
jmp 0x441b14
mov dword [esp], str.Out_of_memory_allocating_dump_request_table._n
call fcn.00436bb0
jmp 0x441b14
mov dword [esp + 4], ebx
mov dword [esp], str.File__s_is_not_an_archive_so_its_index_cannot_be_displayed._n
call fcn.00436bb0
jmp 0x441c48
mov dword [0x4711f8], 1
call fcn.00436ad0
jmp 0x441666