Function at 0x406dc0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov eax, ecx
mov dword [ebp - 4], edx
mov edi, 1
mov dword [ebp - 8], eax
cmp eax, edi
jle 0x4070c4
mov ebx, dword [ebp + 8]
lea esi, [edi + 1]
push 2
push 0x57dd64
push dword [edx + edi*4]
call fcn.005202a0
add esp, 0xc
test eax, eax
jne 0x406e18
cmp esi, dword [ebp - 8]
jge 0x407134
mov edx, dword [ebp - 4]
mov eax, dword [edx + edi*4 + 4]
add edi, 2
mov dword [ebx + 0xc], eax
add esi, 2
jmp 0x4070bb
mov eax, dword [ebp - 4]
push 2
push 0x57dd68
push dword [eax + edi*4]
call fcn.005202a0
add esp, 0xc
test eax, eax
jne 0x406e62
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push dword [eax + edi*4 + 4]
call fcn.005208d7
push eax
push eax
push str.Using_starting_offset:_0x_08x___d__n
mov dword [ebx + 4], eax
call fcn.0052049c
add esp, 0x18
add edi, 2
add esi, 2
jmp 0x4070b8
mov eax, dword [ebp - 4]
push 3
push 0x57dd90
push dword [eax + edi*4]
call fcn.005202a0
add esp, 0xc
test eax, eax
jne 0x406eac
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push dword [eax + edi*4 + 4]
call fcn.005208d7
push eax
push eax
push str.Using_base_address:_0x_08x___d__n
mov dword [ebx + 8], eax
call fcn.0052049c
add esp, 0x18
add edi, 2
add esi, 2
jmp 0x4070b8
mov eax, dword [ebp - 4]
push 3
push 0x57ddb8
push dword [eax + edi*4]
call fcn.005202a0
add esp, 0xc
test eax, eax
jne 0x406ed0
mov dword [ebx], 1
jmp 0x4070b6
mov eax, dword [ebp - 4]
push 2
push 0x57ddbc
push dword [eax + edi*4]
call fcn.005202a0
add esp, 0xc
test eax, eax
je 0x4070b6
mov eax, dword [ebp - 4]
push 2
push 0x57ddc0
push dword [eax + edi*4]
call fcn.005202a0
add esp, 0xc
test eax, eax
jne 0x406f39
cmp esi, dword [ebp - 8]
jge 0x407152
mov ecx, dword [ebx + 0x140]
mov edx, dword [ebp - 4]
cmp ecx, 0xa
jge 0x406f28
mov eax, dword [edx + edi*4 + 4]
mov dword [ebx + ecx*4 + 0x144], eax
inc dword [ebx + 0x140]
add edi, 2
add esi, 2
jmp 0x4070bb
mov eax, dword [ebp - 4]
push 2
push 0x57ddc4
push dword [eax + edi*4]
call fcn.005202a0
add esp, 0xc
test eax, eax
jne 0x406f80
cmp esi, dword [ebp - 8]
jge 0x407170
mov ecx, dword [ebx + 0x44]
cmp ecx, 0xa
jge 0x4070cd
mov edx, dword [ebp - 4]
mov eax, dword [edx + edi*4 + 4]
add edi, 2
mov dword [ebx + ecx*4 + 0x48], eax
inc dword [ebx + 0x44]
add esi, 2
jmp 0x4070bb
mov eax, dword [ebp - 4]
push 2
push 0x57ddfc
push dword [eax + edi*4]
call fcn.005202a0
add esp, 0xc
test eax, eax
jne 0x406fd0
cmp esi, dword [ebp - 8]
jge 0x40718e
mov ecx, dword [ebx + 0x98]
cmp ecx, 0xa
jge 0x4070e6
mov edx, dword [ebp - 4]
mov eax, dword [edx + edi*4 + 4]
add edi, 2
mov dword [ebx + ecx*4 + 0x9c], eax
inc dword [ebx + 0x98]
add esi, 2
jmp 0x4070bb
mov eax, dword [ebp - 4]
mov edx, 0x57de34
mov ecx, dword [eax + edi*4]
call fcn.00406730
test eax, eax
je 0x407021
cmp esi, dword [ebp - 8]
jl 0x406ff3
mov ecx, 0x57de34
call fcn.00406760
mov ecx, dword [ebx + 0xec]
cmp ecx, 0xa
jge 0x4070ff
mov edx, dword [ebp - 4]
mov eax, dword [edx + edi*4 + 4]
add edi, 2
mov dword [ebx + ecx*4 + 0xf0], eax
inc dword [ebx + 0xec]
add esi, 2
jmp 0x4070bb
mov eax, dword [ebp - 4]
mov dl, 0x2d
mov ecx, dword [eax + edi*4]
call fcn.00406780
mov dword [ebp - 0xc], eax
test eax, eax
js 0x407062
cmp dword [ebx + eax*4 + 0x2c], 0
push dword [eax*4 + 0x57d6b0]
jne 0x407118
push eax
push str.Setting__d___s_n
call fcn.0052049c
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebx + eax*4 + 0x14], 1
jmp 0x4070b6
mov eax, dword [ebp - 4]
mov dl, 0x2b
mov ecx, dword [eax + edi*4]
call fcn.00406780
mov dword [ebp - 0xc], eax
test eax, eax
js 0x4070a3
cmp dword [ebx + eax*4 + 0x14], 0
push dword [eax*4 + 0x57d6b0]
jne 0x407118
push eax
push str.Setting__d__s_n
call fcn.0052049c
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebx + eax*4 + 0x2c], 1
jmp 0x4070b6
mov eax, dword [ebp - 4]
push dword [eax + edi*4]
push str.WARNING:_unknown_flag:__s._Skipping_n
call fcn.0052049c
add esp, 8
inc edi
inc esi
mov edx, dword [ebp - 4]
cmp edi, dword [ebp - 8]
jl 0x406de4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0xa
push str.ERROR:_Too_many__r_files_specified._Limit_is__d_n
call fcn.0052049c
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xa
push str.ERROR:_Too_many__w_files_specified._Limit_is__d_n
call fcn.0052049c
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xa
push str.ERROR:_Too_many__rw_files_specified._Limit_is__d_n
call fcn.0052049c
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.ERROR:_conflicting____requests_for_register__s_n
call fcn.0052049c
add esp, 8
call fcn.004066b0
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
push 0x57dd64
push str.Missing_argument_to__s
call fcn.0052049c
add esp, 8
call fcn.004066b0
push 1
call fcn.00520ca0
push 0x57ddc0
push str.Missing_argument_to__s
call fcn.0052049c
add esp, 8
call fcn.004066b0
push 1
call fcn.00520ca0
push 0x57ddc4
push str.Missing_argument_to__s
call fcn.0052049c
add esp, 8
call fcn.004066b0
push 1
call fcn.00520ca0
push 0x57ddfc
push str.Missing_argument_to__s
call fcn.0052049c
add esp, 8
call fcn.004066b0
push 1
call fcn.00520ca0
int3