Function at 0x497ad0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x104
mov ecx, dword [esp + 0x108]
xor eax, eax
push esi
xor esi, esi
mov al, byte [ecx]
mov ax, word [eax*8 + 0x54901c]
and eax, 0x8000
or ah, 0x40
shr eax, 0xe
and eax, 0xffff
mov cl, byte [eax + ecx]
mov byte [esp + 4], cl
mov ecx, dword [0xb65cc8]
cmp ecx, esi
je 0x497b19
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [0xb65cc8], esi
mov ecx, dword [0xb65ccc]
cmp ecx, esi
je 0x497b2f
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0xb65ccc], esi
mov ecx, dword [0xb660f0]
cmp ecx, esi
je 0x497b45
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [0xb660f0], esi
mov ecx, dword [0xb66108]
cmp ecx, esi
je 0x497b5b
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0xb66108], esi
mov ecx, dword [0xb660f4]
cmp ecx, esi
je 0x497b71
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [0xb660f4], esi
mov ecx, dword [0xb660f8]
cmp ecx, esi
je 0x497b89
mov eax, dword [ecx]
push 1
call dword [eax]
xor ecx, ecx
mov dword [0xb660f8], ecx
mov eax, dword [esp + 4]
and eax, 0xff
cmp eax, 7
ja case.0x497b9b.3
jmp dword [eax*4 + 0x497d30]
mov ecx, dword [0xb66114]
push esi
push esi
push 1
push ecx
push str.You_have_been_idle_for_too_long.__If_you_do_not_do_anything_in_the_next_minute__you_will_be_logged_out.
call fcn.00457b00
add esp, 0x14
pop esi
add esp, 0x104
ret
push str.This_character_already_exists._nPlaying...
jmp 0x497bd6
cmp dword [0xb66114], esi
je 0x497bff
push str.Incorrect_password.
lea edx, [esp + 0xc]
push edx
call fcn.004de113
push esi
push esi
mov eax, dword [0xb66114]
push 1
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00457b00
add esp, 0x1c
pop esi
add esp, 0x104
ret
lea edx, [esp + 8]
push str.You_entered_an_incorrect_password.__Closing...
push edx
call fcn.004de113
push esi
push 1
jmp 0x497be2
cmp dword [0xb66114], esi
je 0x497c71
lea edx, [esp + 8]
push str.This_character_does_not_exist_anymore.__You_will_have_to_recreate_it.
push edx
call fcn.004de113
mov eax, dword [0xcc2df4]
mov ecx, dword [0xb66114]
add esp, 8
push eax
call fcn.004732b0
mov eax, dword [0xcc2df4]
dec eax
mov dword [0xcc2df4], eax
jns 0x497c51
mov dword [0xcc2df4], esi
mov ecx, dword [0xb66114]
push esi
push esi
push 1
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00457b00
add esp, 0x14
pop esi
add esp, 0x104
ret
lea eax, [esp + 8]
push str.Character_does_not_exist._n_Closing...
push eax
call fcn.004de113
push esi
lea ecx, [esp + 0x14]
push str.Access_Denied_
push ecx
call fcn.004d7e20
add esp, 0x14
push esi
call fcn.004de7d8
mov eax, dword [0xb660ec]
cmp eax, esi
je 0x497cb6
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov ecx, dword [0xb660f8]
mov dword [0xb660ec], esi
cmp ecx, esi
je 0x497cc6
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0xb660f8], esi
mov ecx, dword [0xb66114]
push esi
push esi
push 1
push ecx
push str.Another_character_from_this_account_is_currently_online_in_this_world.__You_must_either_log_in_as_that_character_or_wait_for_it_to_time_out.
call fcn.00457b00
add esp, 0x14
pop esi
add esp, 0x104
ret
mov edx, dword [0xb66114]
push esi
push esi
push 1
push edx
push str.An_error_has_occurred_in_the_synchronization_between_the_login_servers_and_this_world.__Please_close_your_client_and_try_again.
call fcn.00457b00
add esp, 0x14
pop esi
add esp, 0x104
ret
mov eax, dword [0xb66114]
push esi
cmp eax, esi
push esi
push 1
jne 0x497d18
mov eax, dword [0xb66110]
push eax
push str.The_client_could_not_attach_to_the_game_server._It_must_have_been_taken_down__please_wait_a_few_minutes_and_try_again.
call fcn.00457b00
add esp, 0x14
pop esi
add esp, 0x104
ret