Function at 0x40a150
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x78834c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
xor edx, edx
cmp byte [0x812f08], dl
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
setne dl
push 0
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x278]
push 0x200
push eax
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x23c], ecx
mov byte [ebp - 0x205], 0
mov dword [ebp - 0x21c], 0
mov byte [ebp - 0x209], 0
mov dword [ebp - 0x214], edx
call fcn.00414770
add esp, 0xc
lea ecx, [ebp - 0x278]
call fcn.00409060
mov dword [ebp - 0x218], eax
test eax, eax
je 0x40a3a5
mov edx, dword [ebx]
cmp edx, 2
jl 0x40a22c
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
mov edi, str.__no_defaults
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x40a216
test cl, cl
je 0x40a212
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x40a216
add eax, 2
add edi, 2
test cl, cl
jne 0x40a1f6
xor eax, eax
jmp 0x40a21b
sbb eax, eax
sbb eax, 0xffffffff
mov edi, dword [ebp - 0x220]
test eax, eax
jne 0x40a22c
mov byte [ebp - 0x209], 1
xor eax, eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], str.defaults
mov dword [ebp - 0x250], edi
cmp dword [edi], eax
je 0x40a257
add edi, 4
inc eax
cmp dword [edi], 0
jne 0x40a248
mov dword [ebp - 0x258], eax
push 0x20
push edx
push 0
lea edx, [ebp - 0x238]
push 4
push edx
call fcn.00414bc0
add esp, 0x14
test al, al
jne 0x40a3a5
lea eax, [ebp - 0x278]
mov dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x209]
push eax
push 0
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x244], ecx
mov ecx, dword [ebp - 0x218]
push ecx
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x258]
mov dword [ebp - 0x240], edx
lea edx, [ebp - 0x248]
push edx
push 0x408b20
lea eax, [ebp - 0x21c]
push eax
push esi
push ebx
push ecx
call fcn.00409d70
mov edi, eax
add esp, 0x24
test edi, edi
je 0x40a2f7
lea edx, [ebp - 0x278]
push 0
push edx
call fcn.00414a20
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472ef6
mov esp, ebp
pop ebp
ret
cmp byte [0x4d6cd8], 0
je 0x40a376
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.004091b0
add esp, 8
test eax, eax
je 0x40a376
mov ecx, dword [ebp - 0x209]
mov edx, dword [ebp - 0x218]
push ecx
push 1
push edx
lea eax, [ebp - 0x248]
push eax
push 0x408b20
lea ecx, [ebp - 0x21c]
push ecx
push esi
lea edx, [ebp - 0x204]
push ebx
push edx
call fcn.00409d70
mov edi, eax
add esp, 0x24
test edi, edi
je 0x40a376
lea eax, [ebp - 0x278]
push 0
push eax
call fcn.00414a20
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472ef6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx]
add ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x278]
add ecx, dword [ebp - 0x214]
lea edx, [ecx*4 + 0x24]
push edx
push eax
call fcn.00414890
add esp, 8
mov dword [ebp - 0x210], eax
test eax, eax
jne 0x40a3c5
push str.Fatal_error_in_defaults_handling._Program_aborted_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]
mov ecx, dword [esi]
mov edx, dword [ecx]
lea edi, [eax + 0x20]
mov dword [edi], edx
mov eax, dword [ebp - 0x234]
mov edx, dword [ebp - 0x238]
lea ecx, [eax*4]
push ecx
push edx
lea eax, [edi + 4]
push eax
call fcn.0047322e
mov eax, dword [ebp - 0x21c]
sub dword [ebx], eax
lea ecx, [eax*4]
add dword [esi], ecx
mov eax, dword [esi]
add esp, 0xc
cmp dword [ebx], 2
jl 0x40a448
mov eax, dword [eax + 4]
mov ecx, str.__print_defaults
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40a430
test dl, dl
je 0x40a42c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40a430
add eax, 2
add ecx, 2
test dl, dl
jne 0x40a410
xor eax, eax
jmp 0x40a435
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40a448
mov eax, dword [ebx]
dec eax
mov dword [ebx], eax
add dword [esi], 4
mov byte [ebp - 0x205], 1
cmp byte [0x812f08], 0
je 0x40a460
mov edx, dword [ebp - 0x234]
mov eax, dword [str.____args_separator____]
mov dword [edi + edx*4 + 4], eax
mov eax, dword [ebx]
test eax, eax
je 0x40a48d
mov edx, dword [esi]
lea ecx, [eax*4 - 4]
mov eax, dword [ebp - 0x234]
add eax, dword [ebp - 0x214]
push ecx
add edx, 4
push edx
lea edx, [edi + eax*4 + 4]
push edx
call fcn.0047322e
add esp, 0xc
mov ecx, dword [ebx]
add ecx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x214]
add ecx, eax
mov dword [edi + ecx*4], 0
mov edx, dword [ebp - 0x234]
add edx, eax
add dword [ebx], edx
mov dword [esi], edi
mov edi, dword [ebp - 0x210]
lea eax, [ebp - 0x238]
mov ecx, 8
lea esi, [ebp - 0x278]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00414de0
mov eax, dword [ebp - 0x23c]
add esp, 4
test eax, eax
je 0x40a4e4
mov ecx, dword [ebp - 0x218]
mov dword [eax], ecx
cmp byte [ebp - 0x209], 0
jne 0x40a554
cmp byte [ebp - 0x205], 0
je 0x40a554
mov edi, dword [ebp - 0x224]
mov edx, dword [edi]
mov eax, dword [edx]
push eax
push str._s_would_have_been_started_with_the_following_arguments:_n
call dword [sym.imp.MSVCR100.dll_printf]
mov esi, 1
add esp, 8
cmp dword [ebx], esi
jle 0x40a53e
mov ecx, dword [edi]
mov ecx, dword [ecx + esi*4]
push ecx
call fcn.00408a80
add esp, 4
test al, al
jne 0x40a539
push ecx
push 0x4ba794
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
inc esi
cmp esi, dword [ebx]
jl 0x40a518
push 0x4b8ae9
call dword [sym.imp.MSVCR100.dll_puts]
add esp, 4
push 0
call dword [sym.imp.MSVCR100.dll_exit]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00472ef6
mov esp, ebp
pop ebp
ret