Function at 0x40c160
Capabilities:
Terminate process

Disassembly:
sub esp, 0x64
push ebx
xor eax, eax
cmp byte [0x786de0], al
push ebp
push esi
push edi
setne al
push 0
lea ecx, [esp + 0x58]
push 0x200
push ecx
mov byte [esp + 0x1f], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
call fcn.00419fc0
lea edx, [esp + 0x60]
push edx
call fcn.0040b3b0
mov edi, eax
add esp, 0x10
mov dword [esp + 0x20], edi
test edi, edi
je 0x40c363
mov ebx, dword [esp + 0x80]
mov edx, dword [ebx]
cmp edx, 2
mov ebp, dword [esp + 0x84]
jl 0x40c2a0
mov eax, dword [ebp]
mov eax, dword [eax + 4]
mov esi, str.__no_defaults
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x40c1f3
test cl, cl
je 0x40c1ef
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x40c1f3
add eax, 2
add esi, 2
test cl, cl
jne 0x40c1d3
xor eax, eax
jmp 0x40c1f8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40c2a0
lea ecx, [edx*4 + 0x24]
push ecx
lea edx, [esp + 0x58]
push edx
call fcn.0041a0c0
add esp, 8
test eax, eax
je 0x40c363
mov ecx, dword [ebp]
mov edx, dword [ecx]
lea esi, [eax + 0x20]
mov dword [esi], edx
cmp byte [0x786de0], 0
mov edx, 1
je 0x40c243
mov ecx, dword [str.____args_separator____]
mov dword [esi + 4], ecx
mov edx, 2
mov ecx, 2
cmp dword [ebx], ecx
jbe 0x40c25f
lea esp, [esp]
mov edi, dword [ebp]
mov edi, dword [edi + ecx*4]
mov dword [esi + edx*4], edi
inc ecx
inc edx
cmp ecx, dword [ebx]
jb 0x40c250
mov dword [esi + edx*4], 0
cmp byte [0x786de0], 0
jne 0x40c271
dec dword [ebx]
mov edi, eax
mov eax, dword [esp + 0x88]
mov dword [ebp], esi
mov ecx, 8
lea esi, [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
test eax, eax
je 0x40c4f2
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [eax], edx
xor eax, eax
pop ebx
add esp, 0x64
ret
mov eax, dword [esp + 0x7c]
xor ecx, ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], str.defaults
mov dword [esp + 0x38], eax
cmp dword [eax], ecx
je 0x40c2cd
lea ebx, [ebx]
add eax, 4
inc ecx
cmp dword [eax], 0
jne 0x40c2c0
mov dword [esp + 0x30], ecx
push 0x20
push edx
push 0
lea eax, [esp + 0x4c]
push 4
push eax
call fcn.00412760
add esp, 0x14
test al, al
jne 0x40c363
push edi
lea ecx, [esp + 0x58]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x48]
push 0x40b020
mov dword [esp + 0x34], edx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x40]
push ebp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x8c]
push ebx
push eax
call fcn.0040beb0
mov esi, eax
add esp, 0x1c
lea ecx, [esp + 0x54]
test esi, esi
je 0x40c33e
push 0
push ecx
call fcn.0041a260
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
mov edx, dword [ebx]
add edx, dword [esp + 0x44]
add edx, dword [esp + 0x14]
lea eax, [edx*4 + 0x24]
push eax
push ecx
call fcn.0041a0c0
mov edi, eax
add esp, 8
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x40c383
push str.Fatal_error_in_defaults_handling._Program_aborted_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR90.dll_exit]
mov edx, dword [ebp]
mov eax, dword [edx]
lea esi, [edi + 0x20]
mov dword [esi], eax
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
lea edx, [ecx*4]
push edx
push eax
lea ecx, [esi + 4]
push ecx
call sub.MSVCR90.dll_memcpy
mov eax, dword [esp + 0x24]
sub dword [ebx], eax
lea edx, [eax*4]
add dword [ebp], edx
mov edx, dword [ebx]
mov eax, dword [ebp]
add esp, 0xc
cmp edx, 2
jl 0x40c409
mov eax, dword [eax + 4]
mov edi, str.__print_defaults
lea esp, [esp]
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x40c3f0
test cl, cl
je 0x40c3ec
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x40c3f0
add eax, 2
add edi, 2
test cl, cl
jne 0x40c3d0
xor eax, eax
jmp 0x40c3f5
sbb eax, eax
sbb eax, 0xffffffff
mov edi, dword [esp + 0x1c]
test eax, eax
jne 0x40c409
dec edx
mov dword [ebx], edx
add dword [ebp], 4
mov byte [esp + 0x13], 1
cmp byte [0x786de0], 0
je 0x40c420
mov eax, dword [esp + 0x44]
mov ecx, dword [str.____args_separator____]
mov dword [esi + eax*4 + 4], ecx
mov eax, dword [ebx]
test eax, eax
je 0x40c44c
mov ecx, dword [esp + 0x44]
lea edx, [eax*4 - 4]
mov eax, dword [ebp]
push edx
mov edx, dword [esp + 0x18]
add eax, 4
push eax
add ecx, edx
lea eax, [esi + ecx*4 + 4]
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov ecx, dword [ebx]
add ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x14]
add ecx, eax
mov dword [esi + ecx*4], 0
mov edx, dword [esp + 0x44]
add edx, eax
add dword [ebx], edx
mov dword [ebp], esi
lea eax, [esp + 0x40]
mov ecx, 8
lea esi, [esp + 0x54]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00412970
add esp, 4
cmp byte [esp + 0x13], 0
je 0x40c4e1
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov edi, dword [sym.imp.MSVCR90.dll_printf]
push edx
push str._s_would_have_been_started_with_the_following_arguments:_n
call edi
mov esi, 1
add esp, 8
cmp dword [ebx], esi
jle 0x40c4cb
mov eax, dword [ebp]
mov edx, dword [eax + esi*4]
push edx
call fcn.0040af90
add esp, 4
test al, al
jne 0x40c4c6
push edx
push 0x486ee4
call edi
add esp, 8
inc esi
cmp esi, dword [ebx]
jl 0x40c4a8
push 0x4852b2
call dword [sym.imp.MSVCR90.dll_puts]
add esp, 4
push 0
call dword [sym.imp.MSVCR90.dll_exit]
mov eax, dword [esp + 0x88]
test eax, eax
je 0x40c4f2
mov ecx, dword [esp + 0x20]
mov dword [eax], ecx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x64
ret