Function at 0x485690
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5701f5
mov eax, dword fs:[0]
push eax
sub esp, 0xb78
mov eax, dword [0x5d72e0]
xor eax, esp
mov dword [esp + 0xb70], eax
push ebx
push esi
push edi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0xb88]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x5b8]
mov ebx, dword [esi + 0x5bc]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], eax
add eax, 0xffffffff
cmp eax, 0x19
mov ecx, 0x16e
lea edi, [esp + 0x5c4]
rep movsd dword es:[edi], dword [esi]
ja case.0x485708.1
movzx eax, byte [eax + 0x485f24]
jmp dword [eax*4 + 0x485f18]
push 0x2b0
lea ecx, [esp + 0x68]
push 0
push ecx
call fcn.00530d30
mov edx, dword [esp + 0x5d0]
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x74], 1
mov dword [esp + 0x78], 0
mov dword [esp + 0x94], edx
call fcn.004eb810
mov ecx, 0x10
lea esi, [esp + 0x618]
lea edi, [esp + 0x98]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x10
lea esi, [esp + 0x6d8]
lea edi, [esp + 0xd8]
rep movsd dword es:[edi], dword [esi]
add esp, 0x10
mov dword [esp + 0x108], 1
call fcn.00518333
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x48579a
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
test ebx, ebx
mov dword [esp + 0xb90], 0
jne 0x48585b
cmp dword [esp + 0x18], 0x15
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
jne 0x485810
push str.Log.ConnFail
call fcn.004019c0
lea ecx, [esp + 0x5c]
push ecx
mov byte [esp + 0xb98], 1
call fcn.004ea360
mov ecx, eax
mov byte [esp + 0xb98], bl
call fcn.004ea820
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xb94], 2
call fcn.00402060
lea ecx, [esp + 0x58]
jmp 0x4858a8
push str.Log.Disconnect
mov dword [esp + 0x70], 8
call fcn.004019c0
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0xb98], 3
call fcn.004ea360
mov ecx, eax
mov byte [esp + 0xb98], 0
call fcn.004ea820
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xb94], 4
call fcn.00402060
lea ecx, [esp + 0x30]
jmp 0x4858a8
cmp ebx, 1
jne 0x4858b5
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Log.ConnSuccess
call fcn.004019c0
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0xb98], 5
call fcn.004ea360
mov ecx, eax
mov byte [esp + 0xb98], 0
call fcn.004ea820
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xb94], 6
call fcn.00402060
lea ecx, [esp + 0x50]
mov byte [esp + 0xb90], 0
call fcn.004015d0
mov esi, dword [esp + 0x790]
push 0x57e9e8
lea ecx, [esp + 0x24]
call fcn.004019c0
test ebx, ebx
mov byte [esp + 0xb90], 7
jne 0x485974
cmp esi, 0xffffd2a3
jne 0x48593a
lea ecx, [esp + 0x968]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x581fa4
call fcn.004019c0
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0xb9c], 8
call fcn.004ea360
mov ecx, eax
mov byte [esp + 0xb9c], 7
call fcn.004ea820
mov eax, dword [eax]
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0xb9c], 9
call fcn.004020e0
add esp, 0xc
lea ecx, [esp + 0x38]
jmp 0x485967
mov ecx, dword [esp + 0xaec]
push esi
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x64]
push edx
call fcn.004847b0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xb94], 0xa
call fcn.00402060
lea ecx, [esp + 0x5c]
mov byte [esp + 0xb90], 7
call fcn.004015d0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x44]
push 0x57edd0
push ecx
call fcn.00439140
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb98], 0xb
call fcn.0040ce30
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0xb90], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4859cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x14]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x4859ed
push 0
lea ecx, [esp + 0x18]
call fcn.00401650
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x118]
push ecx
call fcn.00530c72
mov esi, dword [esp + 0x2c]
mov edx, dword [esi + 4]
mov eax, dword [edx + 0xc]
lea edi, [esi + 4]
add esp, 8
push 0xffffffffffffffff
mov ecx, edi
call eax
add esi, 0x14
mov ebx, 2
lea esp, [esp]
mov eax, dword [esi - 8]
test eax, eax
je 0x485a31
mov ecx, dword [esi]
push ecx
lea edx, [esp + 0x68]
push edx
call eax
add esi, 4
sub ebx, 1
jne 0x485a20
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
mov eax, dword [esp + 0x64]
cmp eax, 2
je 0x485a50
cmp eax, 1
jne 0x485a63
lea eax, [esp + 0x64]
push 1
push eax
call fcn.004bcea0
mov ecx, eax
call fcn.004bc360
mov eax, dword [esp + 0x20]
mov byte [esp + 0xb90], 0
jmp 0x485eac
push 0x2b0
lea ecx, [esp + 0x318]
push 0
push ecx
call fcn.00530d30
lea edx, [esp + 0x328]
push edx
mov dword [esp + 0x324], 1
mov dword [esp + 0x328], 2
call fcn.004eb810
mov eax, dword [esp + 0x5d4]
mov ecx, 0x10
lea esi, [esp + 0x618]
lea edi, [esp + 0x348]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x10
lea esi, [esp + 0x6d8]
lea edi, [esp + 0x388]
rep movsd dword es:[edi], dword [esi]
add esp, 0x10
mov dword [esp + 0x334], eax
mov dword [esp + 0x3b8], 1
call fcn.00518333
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x485b0b
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
test ebx, ebx
push ecx
mov dword [esp + 0xb94], 0xc
mov ecx, esp
jle 0x485bc8
cmp dword [esp + 0x1c], 3
mov dword [esp + 0x1c], esp
jne 0x485b82
push str.Log.StartTalkOK
call fcn.004019c0
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0xb98], 0xd
call fcn.004ea360
mov ecx, eax
mov byte [esp + 0xb98], 0xc
call fcn.004ea820
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xb94], 0xe
call fcn.00402060
lea ecx, [esp + 0x28]
jmp 0x485c57
push str.Log.StopTalkOK
call fcn.004019c0
lea edx, [esp + 0x4c]
push edx
mov byte [esp + 0xb98], 0xf
call fcn.004ea360
mov ecx, eax
mov byte [esp + 0xb98], 0xc
call fcn.004ea820
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xb94], 0x10
call fcn.00402060
lea ecx, [esp + 0x48]
jmp 0x485c57
cmp dword [esp + 0x1c], 3
mov dword [esp + 0x1c], esp
jne 0x485c16
push str.Log.StartTalkFail
call fcn.004019c0
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0xb98], 0x11
call fcn.004ea360
mov ecx, eax
mov byte [esp + 0xb98], 0xc
call fcn.004ea820
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xb94], 0x12
call fcn.00402060
lea ecx, [esp + 0x60]
jmp 0x485c57
push str.Log.StopTalkFail
call fcn.004019c0
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0xb98], 0x13
call fcn.004ea360
mov ecx, eax
mov byte [esp + 0xb98], 0xc
call fcn.004ea820
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xb94], 0x14
call fcn.00402060
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb90], 0xc
call fcn.004015d0
push 0x57e9e8
lea ecx, [esp + 0x20]
call fcn.004019c0
test ebx, ebx
mov byte [esp + 0xb90], 0x15
jg 0x485df4
lea eax, [ebx + 4]
cmp eax, 3
ja case.default.0x485c8e
jmp dword [eax*4 + 0x485f40]
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Log.NotFound
call fcn.004019c0
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0xb98], 0x16
call fcn.004ea360
mov ecx, eax
mov byte [esp + 0xb98], 0x15
call fcn.004ea820
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xb94], 0x17
call fcn.00402060
lea ecx, [esp + 0x34]
jmp 0x485de7
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Log.NoLogin
call fcn.004019c0
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0xb98], 0x18
call fcn.004ea360
mov ecx, eax
mov byte [esp + 0xb98], 0x15
call fcn.004ea820
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xb94], 0x19
call fcn.00402060
lea ecx, [esp + 0x3c]
jmp 0x485de7
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Log.OpenAudioFail
call fcn.004019c0
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0xb98], 0x1a
call fcn.004ea360
mov ecx, eax
mov byte [esp + 0xb98], 0x15
call fcn.004ea820
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xb94], 0x1b
call fcn.00402060
lea ecx, [esp + 0x44]
jmp 0x485de7
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Log.OpenDecodeFail
call fcn.004019c0
lea edx, [esp + 0x50]
push edx
mov byte [esp + 0xb98], 0x1c
call fcn.004ea360
mov ecx, eax
mov byte [esp + 0xb98], 0x15
call fcn.004ea820
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xb94], 0x1d
call fcn.00402060
lea ecx, [esp + 0x4c]
jmp 0x485de7
lea eax, [esp + 0x54]
push ebx
push eax
call fcn.004ebe00
add esp, 8
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xb94], 0x1e
call fcn.00402060
lea ecx, [esp + 0x54]
mov byte [esp + 0xb90], 0x15
call fcn.004015d0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.0040ce30
mov edx, dword [esp + 0x14]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x485e28
push 0
lea ecx, [esp + 0x18]
call fcn.00401650
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x3c8]
push ecx
call fcn.00530c72
mov esi, dword [esp + 0x2c]
mov edx, dword [esi + 4]
mov eax, dword [edx + 0xc]
lea edi, [esi + 4]
add esp, 8
push 0xffffffffffffffff
mov ecx, edi
call eax
add esi, 0x14
mov ebx, 2
mov eax, dword [esi - 8]
test eax, eax
je 0x485e68
mov ecx, dword [esi]
push ecx
lea edx, [esp + 0x318]
push edx
call eax
add esi, 4
sub ebx, 1
jne 0x485e54
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
mov eax, dword [esp + 0x314]
cmp eax, 2
je 0x485e8a
cmp eax, 1
jne 0x485ea0
lea eax, [esp + 0x314]
push 1
push eax
call fcn.004bcea0
mov ecx, eax
call fcn.004bc360
mov eax, dword [esp + 0x1c]
mov byte [esp + 0xb90], 0xc
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485ec8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0xb90], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg case.0x485708.1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xb88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb70]
xor ecx, esp
call fcn.0053042b
mov esp, ebp
pop ebp
ret 4