Function at 0x4093f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov dword [0x418cac], 1
push eax
mov dword [ebp], 0
call fcn.00409820
mov esi, eax
add esp, 4
mov al, byte [esi]
test al, al
je 0x4097be
mov ebx, dword [sym.imp.MSVCRT.dll__isctype]
cmp al, 0x23
jne 0x409441
cmp al, 0xa
je 0x409767
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x40942c
jmp 0x409767
cmp al, 0x24
jne 0x40944f
cmp byte [esi + 1], 0x2a
je 0x409783
cmp al, 0x7b
je 0x409766
cmp al, 0x7d
je 0x409766
cmp al, 0x69
jne 0x4094e9
cmp byte [esi + 1], 0x66
jne 0x40947d
push esi
call fcn.00409b90
add esp, 4
mov esi, eax
jmp 0x409767
push 0x417878
push esi
call fcn.004098a0
add esp, 8
test eax, eax
je 0x4094e9
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
add esi, 7
push edx
push esi
mov dword [esp + 0x24], 0
call fcn.00409fd0
mov esi, eax
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x18], eax
je 0x4094dc
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
add ecx, 4
mov dword [ebp], edx
add ebp, 4
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jne 0x4094c2
cmp dword [0x418cac], 3
je 0x409795
mov al, byte [esi]
cmp al, 0x65
jne 0x40955f
push 0x417880
push esi
call fcn.004098a0
add esp, 8
test eax, eax
je 0x409514
add esi, 4
push esi
call fcn.00409910
add esp, 4
mov esi, eax
jmp 0x409767
push 0x417888
push esi
call fcn.004098a0
add esp, 8
test eax, eax
je 0x40952e
add esi, 5
jmp 0x409767
push 0x417890
push esi
call fcn.004098a0
add esp, 8
test eax, eax
jne 0x40979f
push 0x417898
push esi
call fcn.004098a0
add esp, 8
test eax, eax
jne 0x4097a7
jmp 0x409767
cmp al, 0x73
jne 0x409585
push 0x4178a0
push esi
call fcn.004098a0
add esp, 8
test eax, eax
je 0x409585
push esi
call fcn.00409ee0
add esp, 4
mov esi, eax
jmp 0x409767
cmp byte [esi], 0x62
jne 0x4095bf
push 0x4178a8
push esi
call fcn.004098a0
add esp, 8
test eax, eax
je 0x4095bf
push 0
push 0x4178b0
push esi
call fcn.00409a50
mov esi, eax
add esp, 0xc
cmp byte [esi], 0x65
jne 0x409767
add esi, 5
jmp 0x409767
cmp byte [esi], 0x63
jne 0x4095e8
push 0x4178b8
push esi
call fcn.004098a0
add esp, 8
test eax, eax
je 0x4095e8
push 0x3a
push esi
call fcn.00409870
add esp, 8
mov esi, eax
jmp 0x409767
cmp byte [esi], 0x70
jne 0x40960f
push 0x4178c0
push esi
call fcn.004098a0
add esp, 8
test eax, eax
je 0x40960f
push esi
call fcn.00409e10
add esp, 4
mov esi, eax
jmp 0x409767
mov eax, dword [sym.imp.MSVCRT.dll___mb_cur_max]
cmp dword [eax], 1
jle 0x40962a
xor ecx, ecx
push 0x103
mov cl, byte [esi]
push ecx
call ebx
add esp, 8
jmp 0x40963e
mov eax, dword [sym.imp.MSVCRT.dll__pctype]
xor edx, edx
mov dl, byte [esi]
mov ecx, dword [eax]
mov ax, word [ecx + edx*2]
and eax, 0x103
test eax, eax
jne 0x409647
cmp byte [esi], 0x5f
jne 0x40969f
mov edi, esi
mov edx, dword [sym.imp.MSVCRT.dll___mb_cur_max]
cmp dword [edx], 1
jle 0x409665
xor eax, eax
push 0x107
mov al, byte [edi]
push eax
call ebx
add esp, 8
jmp 0x40967a
mov edx, dword [sym.imp.MSVCRT.dll__pctype]
xor ecx, ecx
mov cl, byte [edi]
mov eax, dword [edx]
mov ax, word [eax + ecx*2]
and eax, 0x107
test eax, eax
jne 0x409683
cmp byte [edi], 0x5f
jne 0x409686
inc edi
jmp 0x409649
cmp byte [edi], 0x3d
jne 0x40969f
inc edi
push 0
push edi
push esi
call fcn.00408930
add esp, 0xc
mov esi, eax
jmp 0x409767
mov ecx, dword [0x418cb0]
push 0
push 0x418cd4
push esi
mov dword [0x418ca0], ecx
call fcn.00408b10
mov edx, dword [0x418ca0]
mov esi, eax
mov dword [ebp], edx
mov eax, dword [0x418ca0]
mov edx, dword [0x418cb0]
add esp, 0xc
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x4096e4
mov dword [ebp], 0
jmp 0x409767
mov ecx, dword [0x418cb4]
test ecx, ecx
jne 0x4097bb
push eax
call fcn.00409820
add esp, 4
mov dword [ebp], eax
mov ecx, dword [0x418cbc]
test ecx, ecx
je 0x409731
cmp byte [eax], 0x2d
jne 0x409731
cmp ecx, 2
jne 0x409718
cmp byte [eax + 1], 0x41
je 0x40972a
cmp byte [eax + 1], 0x44
jne 0x409731
cmp byte [eax + 2], 0x5f
jne 0x40972a
cmp byte [eax + 3], 0x5f
je 0x409731
mov dword [ebp], 0
push eax
call fcn.004097d0
mov cl, byte [eax]
add esp, 4
test cl, cl
je 0x40975e
mov byte [eax], 0
inc eax
push eax
call fcn.00409820
mov cl, byte [eax]
add esp, 4
test cl, cl
je 0x40975e
cmp dword [ebp], 0
je 0x4096fb
add ebp, 4
jmp 0x4096fb
cmp dword [ebp], 0
jne 0x4097be
jmp 0x409767
inc esi
push esi
call fcn.00409820
mov esi, eax
add esp, 4
mov al, byte [esi]
test al, al
jne 0x409428
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
lea eax, [esi + 2]
pop edi
pop esi
pop ebp
mov dword [0x418cac], 2
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0x418ccc
pop ebx
ret
push 1
call dword [sym.imp.MSVCRT.dll_exit]
pop edi
pop esi
pop ebp
mov dword [0x418cac], 3
mov eax, 0x418cd0
pop ebx
ret
mov dword [ebp], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret