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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [0x43d25c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x250]
push ecx
xor esi, esi
push 0x437d6c
mov dword [ebp - 0x2dc], eax
mov dword [ebp - 0x2d4], esi
mov dword [ebp - 0x2cc], esi
mov dword [ebp - 0x2d0], 0xffffffff
mov byte [ebp - 0xc], 0
call fcn.0041ce70
push str.range.dat
lea edx, [ebp - 0x230]
push 2
push edx
call fcn.0041e9d0
lea eax, [ebp - 0x230]
push esi
push eax
call dword [sym.imp.MSVCR100.dll__access]
add esp, 0x1c
test eax, eax
jne 0x418cc6
push 0x40
lea ecx, [ebp - 0x230]
push 0x437d7c
push ecx
call dword [sym.imp.MSVCR100.dll__fsopen]
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0x2d8], ebx
cmp ebx, esi
jne 0x418cda
lea edx, [ebp - 0x230]
push edx
push str.Cannot_open_Range_of_Operation_file:__s_n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004248f0
mov esp, ebp
pop ebp
ret
push ebx
push 1
lea eax, [ebp - 0x2c8]
push 0x76
push eax
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x41905b
mov edi, dword [sym.imp.MSVCR100.dll_malloc]
mov edi, edi
lea ecx, [ebp - 0x2c8]
push 8
push ecx
call fcn.0041cbd0
add esp, 8
test eax, eax
jne 0x41903d
lea edx, [ebp - 0x2ba]
push 6
push edx
call fcn.0041cbd0
add esp, 8
test eax, eax
jne 0x41903d
cmp esi, 0x3e7
jge 0x419131
push 0x44
call edi
mov dword [esi*4 + 0x55c780], eax
lea eax, [ebp - 0x2c8]
push eax
lea ecx, [ebp - 0x30]
push 0x437dac
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
mov eax, dword [esi*4 + 0x55c780]
mov esi, dword [sym.imp.MSVCR100.dll_strncpy]
push 8
lea edx, [ebp - 0x30]
push edx
push eax
call esi
mov ebx, dword [ebp - 0x2cc]
mov edx, dword [ebx*4 + 0x55c780]
push 6
lea ecx, [ebp - 0x2c0]
push ecx
add edx, 8
push edx
call esi
mov ecx, dword [ebx*4 + 0x55c780]
push 6
lea eax, [ebp - 0x2b4]
push eax
add ecx, 0x2a
push ecx
call esi
mov edx, dword [ebx*4 + 0x55c780]
xor esi, esi
mov dword [edx + 0x30], esi
mov eax, dword [ebx*4 + 0x55c780]
mov dword [eax + 0x34], esi
mov edx, dword [ebx*4 + 0x55c780]
or ecx, 0xffffffff
mov dword [edx + 0x38], ecx
mov eax, dword [ebx*4 + 0x55c780]
mov dword [eax + 0x3c], ecx
mov edx, dword [ebx*4 + 0x55c780]
mov dword [edx + 0x40], ecx
mov al, byte [ebp - 0x29f]
add esp, 0x34
cmp al, 0x4c
jne 0x418df7
mov eax, dword [ebx*4 + 0x55c780]
mov dword [eax + 0x38], esi
jmp 0x418e1d
cmp al, 0x4d
jne 0x418e0b
mov edx, dword [ebx*4 + 0x55c780]
mov dword [edx + 0x38], 1
jmp 0x418e1d
cmp al, 0x48
jne 0x418e1d
mov eax, dword [ebx*4 + 0x55c780]
mov dword [eax + 0x38], 2
mov al, byte [ebp - 0x29e]
cmp al, 0x4c
jne 0x418e33
mov edx, dword [ebx*4 + 0x55c780]
mov dword [edx + 0x3c], esi
jmp 0x418e59
cmp al, 0x4d
jne 0x418e47
mov eax, dword [ebx*4 + 0x55c780]
mov dword [eax + 0x3c], 1
jmp 0x418e59
cmp al, 0x48
jne 0x418e59
mov edx, dword [ebx*4 + 0x55c780]
mov dword [edx + 0x3c], 2
mov eax, dword [ebx*4 + 0x55c780]
cmp dword [eax + 0x3c], ecx
jne 0x418f3b
mov cl, byte [ebp - 0x29f]
cmp byte [ebp - 0x2a2], cl
jne 0x418e83
mov dword [ebp - 0x2d0], 2
jmp 0x418ead
cmp byte [ebp - 0x2a0], cl
jne 0x418e93
mov dword [ebp - 0x2d0], esi
jmp 0x418ead
mov dword [eax + 0x34], 1
mov eax, dword [ebp - 0x2d0]
cmp eax, esi
je 0x418ead
cmp eax, 2
jne 0x418f3b
mov esi, dword [ebp - 0x2d0]
mov ebx, dword [sym.imp.MSVCR100.dll_strncmp]
push 1
lea esi, [ebp + esi - 0x2a2]
push 0x437db4
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x418ee7
mov eax, dword [ebp - 0x2cc]
mov ecx, dword [eax*4 + 0x55c780]
mov dword [ecx + 0x40], 0
jmp 0x418f33
push 1
push 0x437e08
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x418f0e
mov edx, dword [ebp - 0x2cc]
mov eax, dword [edx*4 + 0x55c780]
mov dword [eax + 0x40], 1
jmp 0x418f33
push 1
push 0x437e0c
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x418f33
mov ecx, dword [ebp - 0x2cc]
mov edx, dword [ecx*4 + 0x55c780]
mov dword [edx + 0x40], 2
mov ebx, dword [ebp - 0x2cc]
xor esi, esi
lea eax, [ebp - 0x240]
push eax
call fcn.0041d130
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x2ba]
push edx
call fcn.0041d180
mov eax, dword [ebx*4 + 0x55c780]
mov ecx, dword [ebp - 0x240]
mov dword [eax + 0xe], ecx
mov edx, dword [ebp - 0x23c]
mov dword [eax + 0x12], edx
mov ecx, dword [ebp - 0x238]
mov dword [eax + 0x16], ecx
mov dx, word [ebp - 0x234]
mov word [eax + 0x1a], dx
lea eax, [ebp - 0x2b4]
push 6
push eax
call fcn.0041cbd0
add esp, 0x14
test eax, eax
jne 0x418ffa
lea ecx, [ebp - 0x240]
push ecx
call fcn.0041d130
lea edx, [ebp - 0x240]
push edx
lea eax, [ebp - 0x2b4]
push eax
call fcn.0041d180
lea ecx, [ebp - 0x240]
push ecx
push 0x437e10
call fcn.0041d640
mov edx, dword [ebp - 0x240]
mov eax, dword [ebx*4 + 0x55c780]
mov dword [eax + 0x1c], edx
mov ecx, dword [ebp - 0x23c]
mov dword [eax + 0x20], ecx
mov edx, dword [ebp - 0x238]
mov dword [eax + 0x24], edx
mov cx, word [ebp - 0x234]
add esp, 0x14
jmp 0x419023
mov edx, dword [ebp - 0x250]
mov eax, dword [ebx*4 + 0x55c780]
mov dword [eax + 0x1c], edx
mov ecx, dword [ebp - 0x24c]
mov dword [eax + 0x20], ecx
mov edx, dword [ebp - 0x248]
mov dword [eax + 0x24], edx
mov cx, word [ebp - 0x244]
mov word [eax + 0x28], cx
mov dword [ebx*4 + 0x55c784], esi
inc ebx
mov dword [ebp - 0x2cc], ebx
mov esi, ebx
mov ebx, dword [ebp - 0x2d8]
push ebx
push 1
lea edx, [ebp - 0x2c8]
push 0x76
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x418d00
push ebx
call dword [sym.imp.MSVCR100.dll_fclose]
push 0x417ee0
push 4
push esi
push 0x55c780
call dword [sym.imp.MSVCR100.dll_qsort]
add esp, 0x14
mov dword [ebp - 0x2d0], 0
test esi, esi
jle 0x41935d
mov ebx, 0x55c780
nop
mov eax, dword [ebx]
mov edi, dword [sym.imp.MSVCR100.dll_strncmp]
push 8
push eax
lea ecx, [ebp - 0xc]
push ecx
call edi
add esp, 0xc
test eax, eax
je 0x419179
cmp dword [0x551550], 0
mov dword [ebp - 0x2d4], 0
jle 0x419179
mov edx, dword [ebx]
mov esi, dword [sym.imp.MSVCR100.dll_sprintf]
push edx
lea eax, [ebp - 0x24]
push 0x437e14
push eax
call esi
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ebp - 0x2dc]
mov eax, dword [edx + ecx*4]
push eax
lea ecx, [ebp - 0x18]
push str._8.8s
push ecx
call esi
lea edx, [ebp - 0x24]
push 2
push edx
call fcn.00420030
lea eax, [ebp - 0x18]
push 2
push eax
call fcn.00420030
add esp, 0x28
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x24]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x419151
test dl, dl
je 0x41912d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x419151
add eax, 2
add ecx, 2
test dl, dl
jne 0x419111
xor eax, eax
jmp 0x419156
push str.Exceeded_maximum_number_of_Range_records_allowed.__Contact_ESC_for_resolution_n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR100.dll_exit]
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x419173
mov eax, dword [ebp - 0x2d4]
inc eax
mov dword [ebp - 0x2d4], eax
cmp eax, dword [0x551550]
jl 0x4190c3
mov esi, dword [ebp - 0x2cc]
mov eax, dword [ebp - 0x2d4]
cmp eax, dword [0x551550]
jne 0x419240
cmp dword [ebx], 0
mov esi, dword [ebp - 0x2d0]
je 0x4191bb
mov eax, ebx
mov ecx, dword [eax]
mov edx, dword [ebx]
push 8
push ecx
push edx
call edi
add esp, 0xc
test eax, eax
jne 0x4191bb
inc esi
cmp dword [esi*4 + 0x55c780], 0
lea eax, [esi*4 + 0x55c780]
jne 0x419198
mov edi, dword [ebp - 0x2d0]
mov ecx, edi
cmp ecx, esi
jge 0x4191ec
jmp 0x4191d0
mov eax, dword [edi*4 + 0x55c780]
push eax
call dword [sym.imp.MSVCR100.dll_free]
inc edi
add esp, 4
cmp edi, esi
jl 0x4191d0
mov ecx, dword [ebp - 0x2d0]
mov edx, dword [ebp - 0x2cc]
sub esi, ecx
mov dword [ebp - 0x2d8], esi
mov eax, ecx
cmp ecx, edx
jg 0x419227
lea edi, [esi + ecx]
lea edi, [edi*4 + 0x55c780]
lea ebx, [ebx]
mov esi, dword [edi]
mov dword [eax*4 + 0x55c780], esi
inc eax
add edi, 4
cmp eax, edx
jle 0x419210
mov esi, dword [ebp - 0x2d8]
sub edx, esi
dec ecx
mov dword [ebp - 0x2cc], edx
mov dword [ebp - 0x2d0], ecx
sub ebx, 4
mov esi, edx
jmp 0x419345
mov edi, dword [ebp - 0x2dc]
mov eax, dword [edi + eax*4]
mov edx, dword [eax + 0xc]
push 3
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 0x10]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x14]
movzx eax, word [eax + 0x18]
mov dword [ecx + 8], edx
mov word [ecx + 0xc], ax
mov eax, dword [ebx]
mov edx, dword [eax + 0xe]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 0x12]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x16]
movzx eax, word [eax + 0x1a]
mov dword [ecx + 8], edx
mov word [ecx + 0xc], ax
call fcn.0041c270
add esp, 0x24
test eax, eax
jns 0x419333
mov ecx, dword [ebp - 0x2d4]
mov ecx, dword [edi + ecx*4]
cmp dword [ecx + 8], 1
jne 0x419333
mov edx, dword [ecx + 0xc]
mov eax, dword [ebx]
mov dword [eax + 0xe], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x12], edx
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x16], edx
mov cx, word [ecx + 0x18]
mov word [eax + 0x1a], cx
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x1c]
push 4
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [ecx + 0x20]
mov dword [eax + 4], edx
mov edx, dword [ecx + 0x24]
mov dword [eax + 8], edx
mov dx, word [ecx + 0x28]
mov word [eax + 0xc], dx
mov edx, dword [ecx + 0xe]
lea eax, [ecx + 0xe]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov ax, word [eax + 0xc]
mov dword [ecx + 8], edx
mov word [ecx + 0xc], ax
call fcn.0041c270
add esp, 0x24
test eax, eax
jle 0x419333
mov ecx, dword [ebx]
mov edx, dword [ecx + 0xe]
mov dword [ecx + 0x1c], edx
mov edx, dword [ecx + 0x12]
mov dword [ecx + 0x20], edx
mov edx, dword [ecx + 0x16]
mov dword [ecx + 0x24], edx
mov ax, word [ecx + 0x1a]
mov word [ecx + 0x28], ax
mov ecx, dword [ebx]
push 8
push ecx
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_strncpy]
add esp, 0xc
mov eax, dword [ebp - 0x2d0]
inc eax
add ebx, 4
mov dword [ebp - 0x2d0], eax
cmp eax, esi
jl 0x419090
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004248f0
mov esp, ebp
pop ebp
ret