Function at 0x407910
Capabilities:
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10084
call fcn.00444810
mov eax, dword [0x458004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
mov dword [ebp - 0x10074], 0
push esi
push edi
mov ebx, edx
mov dword [ebp - 0x10070], eax
add eax, 0x14
mov byte [ebp - 0x10069], 0
xor edi, edi
mov dword [ebp - 0x10084], eax
test ebx, ebx
je 0x407cc8
cmp byte [ebx], 0
je 0x407cc8
mov ecx, 0x44b120
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407988
test dl, dl
je 0x407984
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407988
add eax, 2
add ecx, 2
test dl, dl
jne 0x407968
xor eax, eax
jmp 0x40798d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4079a3
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov dword [ebp - 0x10074], eax
jmp 0x4079cd
push 0x44af34
lea eax, [ebp - 0x10074]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
add esp, 0xc
test eax, eax
jne 0x407cb6
cmp dword [ebp - 0x10074], edi
je 0x407cb6
push 0x60
lea eax, [ebp - 0x10068]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x10068], 1
mov dword [ebp - 0x10064], edi
mov byte [ebp - 0x1000f], 8
push dword [ebp - 0x10074]
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea ecx, [ebp - 0x10008]
push 0x10000
push 1
push ecx
call eax
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407b28
mov dword [ebp - 0x10078], 0
nop dword [eax]
lea eax, [ebp - 0x1007c]
push eax
lea eax, [ebp - 0x10080]
push eax
lea eax, [ebp - 0x10078]
push esi
push eax
lea edx, [ebp - 0x10008]
lea ecx, [ebp - 0x10068]
call fcn.00406b80
add esp, 0x10
cmp eax, 3
ja case.0x407a63.65657
jmp dword [eax*4 + 0x407cec]
cmp dword [ebp - 0x10078], esi
jae 0x4079f7
push str.____rangeparse_next__:_unknown_coding_failure_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 8
jmp 0x407ad6
push dword [ebp - 0x1007c]
mov edx, dword [ebp - 0x10080]
mov ecx, dword [ebp - 0x10070]
call fcn.00408890
add esp, 4
jmp 0x407ad5
movups xmm0, xmmword [ebp - 0x10030]
mov ecx, dword [ebp - 0x10084]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [ebp - 0x10040]
movups xmmword [eax], xmm0
call fcn.0040a420
add esp, 0x20
inc edi
cmp dword [ebp - 0x10078], esi
jb 0x407a30
jmp 0x4079f7
mov eax, dword [ebp - 0x10064]
mov ecx, dword [ebp - 0x10068]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push eax
push ecx
push dword [ebp - 0x1005c]
push dword [ebp - 0x10060]
push eax
push ecx
push ebx
push str._____s:_llu:_llu:_invalid_IP_address_on_line__llu_n
push 2
call esi
add esp, 4
push eax
call fcn.00401010
add esp, 0x24
mov byte [ebp - 0x10069], 1
jmp 0x407b2e
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 0
call esi
mov ecx, dword [ebp - 0x10074]
add esp, 4
cmp ecx, eax
je 0x407b4d
test ecx, ecx
je 0x407b4d
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
cmp byte [ebp - 0x10069], 0
jne 0x407c7d
lea eax, [ebp - 0x1007c]
mov dword [ebp - 0x10080], 0
push eax
lea eax, [ebp - 0x10078]
mov edx, 0x44a41c
push eax
lea eax, [ebp - 0x10080]
push 1
push eax
lea ecx, [ebp - 0x10068]
call fcn.00406b80
add esp, 0x10
cmp eax, 3
ja case.0x407b97.65665
jmp dword [eax*4 + 0x407cfc]
push dword [ebp - 0x1007c]
mov esi, dword [ebp - 0x10070]
mov ecx, esi
mov edx, dword [ebp - 0x10078]
call fcn.00408890
add esp, 4
inc edi
jmp 0x407bf0
movups xmm0, xmmword [ebp - 0x10030]
mov ecx, dword [ebp - 0x10084]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [ebp - 0x10040]
movups xmmword [eax], xmm0
call fcn.0040a420
add esp, 0x20
inc edi
mov esi, dword [ebp - 0x10070]
push edi
push ebx
push str.____s:__u_addresses_read_n
push 1
call fcn.0041b440
add esp, 0x10
mov ecx, esi
call fcn.004087c0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443732
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10064]
mov ecx, dword [ebp - 0x10068]
push eax
push ecx
push dword [ebp - 0x1005c]
push dword [ebp - 0x10060]
push eax
push ecx
push ebx
push str._____s:_llu:_llu:_invalid_IP_address_on_line__llu_n
push 2
call esi
add esp, 4
push eax
call fcn.00401010
add esp, 0x24
push edi
push ebx
push str.____s:__u_addresses_read_n
push 1
call fcn.0041b440
mov ecx, dword [ebp - 0x10070]
add esp, 0x10
call fcn.004087c0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443732
mov esp, ebp
pop ebp
ret
push edi
push ebx
push str.____s:__u_addresses_read_n
push 1
call fcn.0041b440
mov ecx, dword [ebp - 0x10070]
add esp, 0x10
call fcn.004087c0
mov ecx, dword [ebp - 4]
xor al, al
movsx eax, al
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
neg eax
pop esi
dec eax
pop ebx
call fcn.00443732
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
add esp, 4
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push str.____missing_filename_for_ranges_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop dword [eax]
push 0x7a
inc eax
add bh, ah
jp 0x407d33
add byte [ebp - 0x56ffbf86], cl
jp 0x407d3b
add dl, ch
jnp 0x407d3f
add byte [ebx], bl
jl 0x407d43
add byte [esi - 0x42ffbf85], bl
jnp 0x407d4b
add ah, cl
int3
mov al, byte [esi]
inc esi
test al, al
jne 0x407d30
push 0x60
lea eax, [ebp - 0x68]
cwde
mov dword [ebp - 0x6c], 0
add byte [eax], al
add byte [eax], al
push 0
push eax
sub esi, ecx
call sub.VCRUNTIME140.dll_memset
add eax, dword [eax]
add esp, 0xc
mov dword [ebp - 0x68], 1
lea eax, [ebp - 0x74]
mov dword [ebp - 0x64], 0
mov edx, edi
mov byte [ebp - 0xf], 8
lea ecx, [ebp - 0x68]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.00406b80
add esp, 0x10
nop dword [eax]
sub eax, 0
jne 0x407dd6
cmp dword [ebp - 0x6c], esi
jb 0x407daa
lea eax, [ebp - 0x74]
mov edx, 0x44a41c
push eax
lea eax, [ebp - 0x70]
push eax
push 1
push 0
lea ecx, [ebp - 0x68]
call fcn.00406b80
add esp, 0x10
test eax, eax
jne 0x407d80
push str._____parser_next__:_unknown_coding_failure_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443732
mov esp, ebp
pop ebp
ret
sub eax, 2
jne 0x407de3
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x74]
je 0x407de6
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00443732
mov esp, ebp
pop ebp
ret