Function at 0x40ae60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0xf
mov byte [ebp - 0x140], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
call fcn.00405820
cmp eax, 0x11
je 0x40b03e
cmp eax, 0x10
je 0x40b03e
cmp eax, 2
je 0x40b03e
lea eax, [ebp - 0x110]
push eax
push 0x104
call dword [0x42e08c]
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x158], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40af00
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x158]
call fcn.004164b0
sub esp, 0x18
mov ecx, esp
push 0x43818c
call fcn.00415ff0
lea ecx, [ebp - 0x188]
call fcn.00403940
push eax
lea edx, [ebp - 0x158]
lea ecx, [ebp - 0x170]
call fcn.00416600
add esp, 0x1c
lea ecx, [ebp - 0x140]
push eax
call fcn.00415f30
mov edx, dword [ebp - 0x15c]
cmp edx, 0x10
jb 0x40af91
mov ecx, dword [ebp - 0x170]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40af87
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b399
push edx
push ecx
call fcn.00417ade
add esp, 8
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0xf
mov byte [ebp - 0x170], 0
cmp edx, 0x10
jb 0x40afe6
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40afdc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b399
push edx
push ecx
call fcn.00417ade
add esp, 8
mov edx, dword [ebp - 0x174]
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0xf
mov byte [ebp - 0x158], 0
cmp edx, 0x10
jb 0x40b123
mov ecx, dword [ebp - 0x188]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b119
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b399
jmp 0x40b119
sub esp, 0x18
mov ecx, esp
push 0x43818c
call fcn.00415ff0
lea ecx, [ebp - 0x188]
call fcn.00403940
add esp, 0x18
push eax
push ecx
lea ecx, [ebp - 0x158]
call fcn.00406870
add esp, 4
lea ecx, [ebp - 0x170]
mov edx, eax
call fcn.00416600
add esp, 4
lea ecx, [ebp - 0x140]
push eax
call fcn.00415f30
mov edx, dword [ebp - 0x15c]
cmp edx, 0x10
jb 0x40b0c1
mov ecx, dword [ebp - 0x170]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b0b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b399
push edx
push ecx
call fcn.00417ade
add esp, 8
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0xf
mov byte [ebp - 0x170], 0
cmp edx, 0x10
jb 0x40afe6
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40afdc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b399
jmp 0x40afdc
push edx
push ecx
call fcn.00417ade
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x437d54
call fcn.00415ff0
lea ecx, [ebp - 0x188]
call fcn.00403940
add esp, 0x18
lea edx, [ebp - 0x140]
lea ecx, [ebp - 0x158]
push eax
push str.8d943b38dbe427a378a34db28ef8999e
call fcn.00416930
add esp, 4
lea ecx, [ebp - 0x170]
mov edx, eax
call fcn.00416600
add esp, 4
lea ecx, [ebp - 0x128]
push eax
call fcn.00415f30
mov edx, dword [ebp - 0x15c]
cmp edx, 0x10
jb 0x40b1b0
mov ecx, dword [ebp - 0x170]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b1a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b399
push edx
push ecx
call fcn.00417ade
add esp, 8
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0xf
mov byte [ebp - 0x170], 0
cmp edx, 0x10
jb 0x40b205
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b1fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b399
push edx
push ecx
call fcn.00417ade
add esp, 8
mov edx, dword [ebp - 0x174]
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0xf
mov byte [ebp - 0x158], 0
cmp edx, 0x10
jb 0x40b25a
mov ecx, dword [ebp - 0x188]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b250
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b399
push edx
push ecx
call fcn.00417ade
add esp, 8
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0
call dword [0x42e0bc]
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x158], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b292
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x158]
call fcn.004164b0
lea edx, [ebp - 0x158]
lea ecx, [ebp - 0x128]
call fcn.004169f0
mov edx, dword [ebp - 0x144]
mov bl, al
cmp edx, 0x10
jb 0x40b2fb
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b2f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b399
push edx
push ecx
call fcn.00417ade
add esp, 8
test bl, bl
je 0x40b39e
mov edx, dword [ebp - 0x114]
cmp edx, 0x10
jb 0x40b339
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b32f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b399
push edx
push ecx
call fcn.00417ade
add esp, 8
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
cmp edx, 0x10
jb 0x40b38a
mov ecx, dword [ebp - 0x140]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b380
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b399
push edx
push ecx
call fcn.00417ade
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041746c
mov esp, ebp
pop ebp
ret
call fcn.0041c114
cmp dword [ebp - 0x114], 0x10
lea eax, [ebp - 0x128]
push 0x434ae0
cmovae eax, dword [ebp - 0x128]
push eax
call fcn.00419dac
add esp, 8
test eax, eax
je 0x40b3d2
push eax
call fcn.00419e3a
add esp, 4
jmp 0x40b46d
lea ecx, [ebp - 0x140]
call fcn.00405f30
test al, al
jne 0x40b3f5
push 0
lea ecx, [ebp - 0x140]
call fcn.00415eb0
push eax
call dword [0x42e068]
lea ecx, [ebp - 0x140]
call fcn.00405f30
test al, al
je 0x40b427
sub esp, 0x18
lea eax, [ebp - 0x128]
mov ecx, esp
push eax
call fcn.00415ff0
sub esp, 0x18
mov ecx, esp
call fcn.004069b0
call fcn.0040a330
add esp, 0x30
lea ecx, [ebp - 0x128]
call fcn.00405f00
test al, al
je 0x40b46d
sub esp, 0x18
mov ecx, esp
push 0x433e9b
call fcn.00415fb0
sub esp, 0x18
lea eax, [ebp - 0x128]
mov ecx, esp
push eax
call fcn.00415ff0
sub esp, 0x18
mov ecx, esp
push str.stoi_argument_out_of_range
call fcn.00415fb0
call fcn.00404c10
add esp, 0x48
push 0
call fcn.00419cdf
int3