Function at 0x4188e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov ebx, dword [0x5426b0]
xor eax, eax
cmp dword [ebx + 0x70], eax
push esi
push edi
jne 0x418ba2
cmp dword [ebx + 0x2098], eax
je 0x418ba2
mov ecx, dword [ebx + 0x14]
push 0x84
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ecx
mov esi, 0x80
xor edi, edi
call dword [sym.imp.MSVCR80.dll_malloc]
xor edx, edx
add esp, 4
cmp eax, edx
mov dword [esp + 0x24], eax
jne 0x418938
jmp fcn.00408a80
mov dword [eax], edx
add eax, 4
mov byte [eax], dl
push 0x2008
mov dword [esp + 0x38], eax
lea eax, [ebx + 0x2100]
push edx
mov dword [esp + 0x34], edi
xor ecx, ecx
mov edi, 1
push eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x24], edi
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x44], edx
mov dword [esp + 0x28], eax
call sub.MSVCR80.dll_memset
mov al, byte [ebp + 0x10]
add esp, 0xc
test al, 8
je 0x418994
mov dword [esp + 0x10], 3
mov eax, str.NEED_OK
mov ecx, str.confirmation
jmp 0x4189cd
test al, 0x20
je 0x4189ac
mov dword [esp + 0x10], 4
mov eax, str.NEED_STR
mov ecx, str.string
jmp 0x4189cd
test al, 4
mov eax, str.PASSWORD
je 0x4189c4
mov dword [esp + 0x10], 2
mov ecx, str.password
jmp 0x4189cd
mov dword [esp + 0x10], edi
mov ecx, str.username_password
mov edx, dword [ebp + 0xc]
push ecx
push edx
push eax
push str.__s:Need__s__s
lea esi, [esp + 0x38]
call fcn.00402ff0
add esp, 0x10
test byte [ebp + 0x10], 0x28
je 0x4189fe
mov eax, dword [ebp + 8]
add eax, 8
push eax
push str._MSG:_s
call fcn.00402ff0
add esp, 8
push edi
push 0
push 0
lea edi, [esp + 0x20]
mov esi, ebx
call fcn.004186c0
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x418a24
xor edi, edi
mov dword [esp + 0x18], edi
jmp 0x418aee
mov eax, dword [esp + 0x34]
test eax, eax
je 0x418a3b
cmp dword [esp + 0x30], 0
jl 0x418a3b
mov edx, dword [esp + 0x2c]
add eax, edx
jmp 0x418a3d
xor eax, eax
push 0x24800
mov dword [ebx + 0x44], eax
call fcn.00408960
add esp, 4
test eax, eax
je 0x418a67
mov eax, dword [ebx + 0x44]
push eax
push 0x5103a4
push 0x24800
call fcn.00408640
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ebx + 0x20fc], ecx
mov dword [ebx + 0x20f8], edx
lea ebx, [ebx]
mov eax, ebx
call fcn.004184c0
test eax, eax
jne 0x418ab2
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x418ab2
push 0x9d3
push str..manage.c
push str.Assertion_failed_at__s:_d
push 0x10
call fcn.00408640
add esp, 0x10
push 0
lea eax, [esp + 0x18]
push 0
push eax
mov eax, ebx
call fcn.004184e0
add esp, 0xc
test eax, eax
jle 0x418ad2
push ebx
call fcn.00418400
add esp, 4
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x418ae4
mov edx, dword [esp + 0x1c]
cmp dword [edx], ecx
je 0x418a80
jmp 0x418aec
mov dword [esp + 0x18], 0
xor edi, edi
mov eax, dword [esp + 0x20]
lea edx, [ebx + 0x3108]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x20fc], edi
mov dword [ebx + 0x20f8], edi
mov dword [ebx + 0x44], edi
mov esi, str.__BLANK__
mov eax, edx
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x418b31
test cl, cl
je 0x418b2d
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x418b31
add eax, 2
add esi, 2
test cl, cl
jne 0x418b11
xor eax, eax
jmp 0x418b36
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x418b49
push 0x1000
push edi
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp dword [esp + 0x18], edi
je 0x418b6e
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
push 0x2008
push edx
push eax
mov dword [ebx + 0x2104], ecx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x1c]
push 0x2008
push edi
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x30]
mov edi, dword [sym.imp.MSVCR80.dll_free]
add esp, 0xc
jmp 0x418b90
mov esi, dword [eax]
push eax
call edi
add esp, 4
test esi, esi
mov eax, esi
jne 0x418b90
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret