Function at 0x426630
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x24], eax
call fcn.00405240
test eax, eax
je 0x426696
push edi
lea ecx, [ebp - 0xc]
push str.level__1d
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0xc]
push edx
push str.__s_is_an_empty_file_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
call fcn.00404c60
inc dword [0x437d8c]
je 0x42668e
call fcn.004048c0
push 1
call dword [sym.imp.MSVCR100.dll_exit]
mov eax, dword [esi + 0x20]
movsx ebx, word [esi + 0xa]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ecx
cmp dword [esi + 0xc], eax
jle 0x4266bd
mov dword [ecx + eax*4], 0xffffffff
inc eax
cmp eax, dword [esi + 0xc]
jl 0x4266b0
push edi
push str._n_The_available_level__1d_variables_are:_n
call dword [sym.imp.MSVCR100.dll_printf]
mov edi, 1
add esp, 8
cmp ebx, edi
jl 0x426753
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov edi, edi
cmp eax, 3
jle 0x4266ea
mov eax, 3
dec eax
je 0x42672f
dec eax
je 0x426715
dec eax
jne 0x42673f
lea eax, [edi + 1]
lea ecx, [eax + 1]
push ecx
lea edx, [ebx + 0x1a]
push edx
push eax
lea eax, [ebx + 0xd]
push eax
push edi
push ebx
push str._For__.9s_enter__2d____For__.9s_enter__2d____For__.9s_enter__2d_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 0x1c
jmp 0x42673f
lea ecx, [edi + 1]
push ecx
lea edx, [ebx + 0xd]
push edx
push edi
push ebx
push str._For__.9s_enter__2d____For__.9s_enter__2d_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 0x14
jmp 0x42673f
push edi
push ebx
push str._For__.9s_enter__2d_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 0xc
mov eax, dword [ebp - 0x10]
add edi, 3
sub eax, 3
add ebx, 0x27
mov dword [ebp - 0x10], eax
cmp edi, dword [ebp - 0x18]
jle 0x4266e0
mov edi, dword [sym.imp.MSVCR100.dll_printf]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov edi, edi
inc dword [ebp - 0x10]
push str._n_What_variable_is_the_level_3_ID_
call edi
add esp, 4
push 0x4385a0
call dword [sym.imp.MSVCR100.dll_gets]
add esp, 4
push 0x4385a0
call dword [sym.imp.MSVCR100.dll_atol]
add esp, 4
dec eax
mov dword [esi + 0x18], eax
js 0x42679a
mov ecx, dword [ebp - 0x18]
dec ecx
cmp eax, ecx
jg 0x42679a
inc ebx
jmp 0x4267a4
push str._Not_a_valid_variable._Try_again._n
call edi
add esp, 4
mov edx, dword [esi + 0x18]
imul edx, edx, 0xd
add edx, dword [ebp - 0x14]
push 0x24
push edx
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
test eax, eax
jne 0x4267e5
mov eax, 1
cmp dword [ebp + 8], eax
jle 0x4267de
cmp dword [0x438da0], 0
jne 0x4267de
push 0x435690
call edi
add esp, 4
xor ebx, ebx
jmp 0x42680c
mov dword [0x438da0], eax
jmp 0x42680c
cmp dword [ebp + 8], 1
jle 0x426802
cmp dword [0x438da0], 0
je 0x426802
push 0x435690
call edi
add esp, 4
xor ebx, ebx
jmp 0x42680c
mov dword [0x438da0], 0
cmp dword [ebp - 0x10], 9
jg 0x426861
test ebx, ebx
je 0x426760
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
je 0x426931
push str._What_variable_is_the_level_2_ID_
call edi
add esp, 4
push 0x4385a0
call dword [sym.imp.MSVCR100.dll_gets]
add esp, 4
push 0x4385a0
call dword [sym.imp.MSVCR100.dll_atol]
add esp, 4
dec eax
mov dword [esi + 0x1c], eax
js 0x4268b7
mov ecx, dword [ebp - 0x18]
dec ecx
cmp eax, ecx
jg 0x4268b7
cmp eax, dword [esi + 0x18]
je 0x4268b7
inc ebx
jmp 0x4268c1
push str.Unable_to_get_a_proper_response_n
call edi
add esp, 4
call fcn.00404c60
inc dword [0x437d8c]
je 0x4268af
mov edi, dword [sym.imp.MSVCR100.dll_clock]
call edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
call edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, esi
cmp eax, 3
jbe 0x426893
push 0xe
call dword [sym.imp.MSVCR100.dll_exit]
push str._Not_a_valid_variable._Try_again._n
call edi
add esp, 4
mov edx, dword [esi + 0x1c]
imul edx, edx, 0xd
add edx, dword [ebp - 0x14]
push 0x24
push edx
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
test eax, eax
jne 0x426902
mov eax, 1
cmp dword [ebp + 8], eax
jle 0x4268fb
cmp dword [0x438da0], 0
jne 0x4268fb
push 0x435690
call edi
add esp, 4
xor ebx, ebx
jmp 0x426929
mov dword [0x438da0], eax
jmp 0x426929
cmp dword [ebp + 8], 1
jle 0x42691f
cmp dword [0x438da0], 0
je 0x42691f
push 0x435690
call edi
add esp, 4
xor ebx, ebx
jmp 0x426929
mov dword [0x438da0], 0
test ebx, ebx
je 0x426825
mov edi, 3
cmp dword [ebp + 8], edi
jne 0x426941
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], eax
push 0xa
mov dword [esi + 0x14], 0
call dword [sym.imp.MSVCR100.dll_putchar]
mov eax, dword [0x438da0]
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
je 0x426968
cmp dword [ebp + 8], edi
jge 0x426968
inc eax
mov dword [ebp - 0x20], eax
mov ecx, dword [esi + 0xc]
sub ecx, eax
cmp dword [esi + 0x14], ecx
jge 0x426a83
mov dword [ebp - 0x10], 0
lea ecx, [ecx]
mov edx, dword [esi + 0x14]
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.MSVCR100.dll_printf]
inc edx
push edx
push eax
push str._Please_specify_level__1d_variable__2d:__enter_0_to_end_
call ebx
add esp, 0xc
push 0x4385a0
call dword [sym.imp.MSVCR100.dll_gets]
add esp, 4
cmp byte [0x4385a0], 0x30
je 0x426a83
push 0x4385a0
call dword [sym.imp.MSVCR100.dll_atol]
mov edi, eax
add esp, 4
dec edi
js 0x4269fd
mov ecx, dword [ebp - 0x18]
dec ecx
cmp edi, ecx
jg 0x4269fd
cmp edi, dword [esi + 0x18]
je 0x4269fd
cmp edi, dword [esi + 0x1c]
je 0x4269fd
mov edx, edi
imul edx, edx, 0xd
add edx, dword [ebp - 0x14]
push 0x24
push edx
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
test eax, eax
je 0x4269f8
push str._This_is_a_character_variable__n
jmp 0x426a02
inc dword [ebp - 0x10]
jmp 0x426a07
push str._Not_a_valid_variable._Try_again._n
call ebx
add esp, 4
xor ebx, ebx
cmp dword [esi + 0xc], ebx
jle 0x426a38
mov edi, edi
mov eax, dword [ebp - 0x1c]
cmp dword [eax + ebx*4], edi
jne 0x426a32
push str.You_have_already_chosen_that_variable__n
push 0x42f92c
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
mov dword [ebp - 0x10], 0
inc ebx
cmp ebx, dword [esi + 0xc]
jl 0x426a10
movsx ecx, word [esi + 0xa]
add ecx, 0x19
js 0x426a94
cmp dword [ebp - 0x10], 0
je 0x426980
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, edi
imul ecx, ecx, 0xd
imul eax, eax, 0xd
add eax, dword [ebp - 0x14]
add ecx, dword [ebp - 0x24]
nop
mov dl, byte [eax]
mov byte [ecx], dl
inc eax
inc ecx
test dl, dl
jne 0x426a60
mov edx, dword [esi + 0x14]
mov eax, dword [ebp - 0x1c]
mov dword [eax + edx*4 - 4], edi
mov ecx, dword [esi + 0xc]
sub ecx, dword [ebp - 0x20]
cmp dword [esi + 0x14], ecx
jl 0x426976
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e325
mov esp, ebp
pop ebp
ret
push str.Unable_to_get_a_proper_response_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404c60
inc dword [0x437d8c]
je 0x426aec
mov edi, dword [sym.imp.MSVCR100.dll_clock]
call edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
lea ebx, [ebx]
call edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, esi
cmp eax, 3
jbe 0x426ad0
push 0xe
call dword [sym.imp.MSVCR100.dll_exit]
int3