Function at 0x407510
Capabilities:
Terminate process

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
push edi
push 0
lea eax, [esp + 0x58]
push 0x200
push eax
mov byte [esp + 0x1f], 0
mov dword [esp + 0x24], 0
call fcn.00413420
lea ecx, [esp + 0x60]
push ecx
call fcn.004067a0
add esp, 0x10
test eax, eax
mov dword [esp + 0x14], eax
je 0x40769a
mov ebp, dword [esp + 0x80]
mov edx, dword [ebp]
cmp edx, 2
mov ebx, dword [esp + 0x84]
jl 0x4075f7
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov edi, str.__no_defaults
mov ecx, 0xe
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4075f7
lea ecx, [edx*4 + 0x24]
push ecx
lea edx, [esp + 0x58]
push edx
call fcn.00413520
add esp, 8
test eax, eax
je 0x40769a
mov ecx, dword [ebx]
mov ecx, dword [ecx]
lea edx, [eax + 0x20]
mov dword [edx], ecx
mov ecx, 2
cmp dword [ebp], ecx
jbe 0x4075c1
lea ecx, [ecx]
mov esi, dword [ebx]
mov esi, dword [esi + ecx*4]
mov dword [edx + ecx*4 - 4], esi
add ecx, 1
cmp ecx, dword [ebp]
jb 0x4075b0
mov dword [edx + ecx*4 - 4], 0
add dword [ebp], 0xffffffff
mov edi, eax
mov eax, dword [esp + 0x88]
test eax, eax
mov ecx, 8
lea esi, [esp + 0x54]
mov dword [ebx], edx
rep movsd dword es:[edi], dword [esi]
je 0x4075ed
mov edx, dword [esp + 0x14]
mov dword [eax], edx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x64
ret
mov eax, dword [esp + 0x7c]
xor ecx, ecx
cmp dword [eax], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], str.defaults
mov dword [esp + 0x38], eax
je 0x407620
add eax, 4
add ecx, 1
cmp dword [eax], 0
jne 0x407611
mov dword [esp + 0x30], ecx
push 0x20
push edx
push 0
lea eax, [esp + 0x4c]
push 4
push eax
call fcn.00413080
add esp, 0x14
test al, al
jne 0x40769a
lea ecx, [esp + 0x54]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x7c]
lea edx, [esp + 0x44]
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x38]
push 0x406400
mov dword [esp + 0x38], eax
lea eax, [esp + 0x24]
push eax
push ebx
push ebp
push ecx
call fcn.004072a0
mov edx, dword [ebp]
add edx, dword [esp + 0x60]
mov dword [esp + 0x3c], eax
lea eax, [edx*4 + 0x24]
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.00413520
mov edi, eax
add esp, 0x24
test edi, edi
mov dword [esp + 0x1c], edi
jne 0x4076b7
push str.Fatal_error_in_defaults_handling._Program_aborted_n
call fcn.00463ceb
add eax, 0x40
push eax
call fcn.00463b1e
add esp, 8
push 1
call fcn.00463a63
mov edx, dword [ebx]
mov eax, dword [edx]
mov dword [edi + 0x20], eax
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
lea edx, [ecx*4]
push edx
push eax
lea ecx, [edi + 0x24]
push ecx
call fcn.00466080
mov eax, dword [esp + 0x24]
sub dword [ebp], eax
lea edx, [eax*4]
add dword [ebx], edx
mov eax, dword [ebp]
mov ecx, dword [ebx]
add esp, 0xc
cmp eax, 2
jl 0x40771a
mov esi, dword [ecx + 4]
mov edi, str.__print_defaults
mov ecx, 0x11
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov edi, dword [esp + 0x1c]
jne 0x40771a
add eax, 0xffffffff
mov dword [ebp], eax
add dword [ebx], 4
mov byte [esp + 0x13], 1
mov eax, dword [ebp]
test eax, eax
je 0x407743
mov ecx, dword [ebx]
mov edx, dword [esp + 0x44]
lea eax, [eax*4 - 4]
push eax
add ecx, 4
lea eax, [edi + 0x20]
push ecx
lea eax, [eax + edx*4 + 4]
push eax
call fcn.00466080
add esp, 0xc
mov ecx, dword [ebp]
add ecx, dword [esp + 0x44]
lea eax, [edi + 0x20]
mov dword [eax + ecx*4], 0
mov edx, dword [esp + 0x44]
add dword [ebp], edx
mov dword [ebx], eax
lea eax, [esp + 0x40]
mov ecx, 8
lea esi, [esp + 0x54]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00413290
add esp, 4
cmp byte [esp + 0x13], 0
je 0x4077c7
mov ecx, dword [ebx]
mov edx, dword [ecx]
push edx
push str._s_would_have_been_started_with_the_following_arguments:_n
call fcn.004633c8
mov esi, 1
add esp, 8
cmp dword [ebp], esi
jle 0x4077b3
mov eax, dword [ebx]
mov ecx, dword [eax + esi*4]
push ecx
push 0x4bfe28
call fcn.004633c8
add esi, 1
add esp, 8
cmp esi, dword [ebp]
jl 0x407798
push 0x4bf01e
call fcn.0046351c
add esp, 4
push 0
call fcn.00463a63
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4077e0
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x4077e0
mov edx, dword [esp + 0x14]
mov dword [ecx], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret