Function at 0x40c7a0
Capabilities:
Delete file

Disassembly:
sub esp, 0x204
lea eax, [esp]
push ebp
push esi
push edi
push eax
call fcn.0040c750
mov esi, dword [0x463cc8]
mov ebp, eax
mov eax, dword [esp + 0x21c]
add esp, 4
cmp eax, 0xc
ja case.0x40c7ce.517
jmp dword [eax*4 + 0x40cce8]
mov eax, dword [esp + 0x214]
mov ecx, dword [eax + 0x62c]
test ecx, ecx
jne case.0x40c7ce.517
test esi, esi
je 0x40c80b
mov ecx, dword [eax + 0x628]
push ecx
call fcn.0040e870
push eax
push str.Search_swtich___s___.__.__.__
push ebp
call fcn.0041f046
add esp, 0x10
jmp 0x40c882
mov edx, dword [eax + 0x628]
push edx
call fcn.0040e870
push eax
push 0x44e740
push ebp
call fcn.0041f046
add esp, 0x10
jmp 0x40c882
mov edx, dword [esp + 0x214]
mov eax, dword [edx + 0x62c]
test eax, eax
jne case.0x40c7ce.517
test esi, esi
je 0x40c860
mov edi, str.Send_authentication_request_._._.
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x40c87d
mov edi, 0x44e6f4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0xc]
mov ecx, dword [0x46bc38]
push eax
push 0
push 0x4d3
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
mov eax, dword [esp + 0x214]
mov ecx, dword [eax + 0x61c]
test ecx, ecx
je case.0x40c7ce.517
test esi, esi
mov dword [eax + 0x61c], 0
je 0x40c8f8
mov edi, str.Cant_Open_Adapter_...__
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
or ch, 1
jmp 0x40ccc5
mov edi, 0x44e6bc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
or ch, 1
jmp 0x40ccc5
mov eax, dword [esp + 0x214]
mov ecx, dword [eax + 0x61c]
test ecx, ecx
je case.0x40c7ce.517
test esi, esi
mov dword [eax + 0x61c], 0
je 0x40c968
mov edi, str.Cant_Find_Auth_Server
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x40c985
mov edi, 0x44e680
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0x463f19
lea eax, [esp + 0x14]
push str._sAuthNetcard.dat
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.0041f046
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0xc]
mov eax, dword [0x46bc38]
or dh, 1
push edx
push 0
push 0x4d3
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
mov eax, dword [esp + 0x214]
mov ecx, dword [eax + 0x62c]
test ecx, ecx
je 0x40ca4e
test esi, esi
mov dword [eax + 0x62c], 0
je 0x40ca20
mov edi, str.disconnect_Timeout
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
or ch, 3
jmp 0x40ccc5
mov edi, 0x44e650
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
or ch, 3
jmp 0x40ccc5
mov ecx, dword [eax + 0x61c]
test ecx, ecx
je case.0x40c7ce.517
test esi, esi
mov dword [eax + 0x61c], 0
je 0x40ca89
mov edi, str.Auth_Timeout
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x40caa6
mov edi, 0x44e618
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0xc]
mov ecx, dword [0x46bc38]
or ah, 1
push eax
push 0
push 0x4d3
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
mov eax, dword [esp + 0x214]
mov ecx, dword [eax + 0x61c]
test ecx, ecx
je case.0x40c7ce.517
test esi, esi
mov dword [eax + 0x61c], 0
je 0x40cb24
mov edi, str.account_password_error..._
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
or ch, 1
jmp 0x40ccc5
mov edi, 0x44e5e0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
or ch, 1
jmp 0x40ccc5
mov edi, dword [esp + 0x214]
mov dword [edi + 0x61c], 0
mov eax, dword [0x46bc68]
cmp eax, dword [0x46bc30]
je 0x40cb79
push eax
call fcn.0040e9c0
add esp, 4
test esi, esi
mov dword [edi + 0x61c], 0
je 0x40cba6
mov edi, str.Success
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x40cbc3
mov edi, 0x44e5bc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0xc]
mov ecx, dword [0x46bc38]
or ah, 2
push eax
push 0
push 0x4d3
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
mov eax, dword [esp + 0x214]
test esi, esi
mov dword [eax + 0x62c], 0
mov dword [eax + 0x61c], 0
je 0x40cc3d
mov edi, str.disconnect_OK
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
or ch, 3
jmp 0x40ccc5
mov edi, 0x44e590
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
or ch, 3
jmp 0x40ccc5
mov eax, dword [esp + 0x214]
test esi, esi
mov dword [eax + 0x61c], 0
je 0x40cc9c
mov edi, str.Force_Logout_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x40ccb9
mov edi, 0x44e554
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
or ch, 4
mov edx, dword [0x46bc38]
push ecx
push 0
push 0x4d3
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret