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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47c216
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2b8
mov eax, dword [0x4a8420]
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x2b4], eax
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 4]
cmp eax, 0x139e
push esi
push edi
mov esi, ecx
jg 0x40829e
je 0x40826f
cmp eax, 0x142
jg 0x407fd0
je 0x407f17
sub eax, 0x64
cmp eax, 0xdd
ja case.0x4082b3.5024
movzx ecx, byte [eax + 0x408694]
jmp dword [ecx*4 + 0x408680]
xor eax, eax
push 0xffffffffffffffff
push 9
push eax
lea edx, [esp + 0x24]
push edx
mov ecx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
call fcn.0040a0f0
push 0xffffffffffffffff
push 9
push 1
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
call fcn.0040a0f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x50]
mov al, 1
jmp 0x40865a
push 0xffffffffffffffff
xor edi, edi
push 9
push edi
lea edx, [esp + 0x1c]
push edx
mov ecx, ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
call fcn.0040a0f0
test al, al
je case.0x4082b3.5024
mov eax, dword [esi + 0x1dc]
mov ecx, dword [esi + 0x1e0]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
push edx
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x24], ecx
call fcn.00403070
add esp, 8
test al, al
je 0x407dba
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push str.Server_Connection_is_Cleared_UID:_d_d__n
mov byte [esi + 0x38c], 0
mov byte [esi + 0x38d], 0
mov dword [esi + 0x3d8], edi
mov dword [esi + 0x3dc], edi
push 3
jmp 0x407e2e
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00406250
mov ebx, eax
cmp ebx, edi
je 0x407e1d
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
push edi
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
push eax
mov ecx, esi
mov dword [esp + 0x24], edx
call fcn.00407800
movzx ecx, word [ebx + 0x70]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ecx
add ebx, 0x30
push ebx
push edx
push eax
push str.Agent_Client_Remove_UID:_d_d__IP:_s__Port:_d__n
push 7
push esi
call fcn.0040d670
add esp, 0x1c
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.0040be60
mov al, 1
jmp 0x40865a
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push str.Agent_Net_Clear_UID:_d_d__n
push 7
push esi
call fcn.0040d670
add esp, 0x14
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.0040be60
mov al, 1
jmp 0x40865a
push 0xffffffffffffffff
xor edi, edi
push 9
push edi
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
call fcn.0040a0f0
test al, al
je case.0x4082b3.5024
push 0x30
call fcn.00404e10
mov ebx, eax
add esp, 4
mov dword [esp + 0x18], ebx
cmp ebx, edi
mov dword [esp + 0x2cc], 2
je 0x407eb7
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
push 0x142
lea ecx, [esi + 4]
call fcn.00424cb0
push eax
mov ecx, ebx
call fcn.0040b4e0
mov ebx, eax
jmp 0x407eb9
xor ebx, ebx
push 0x10
mov dword [esp + 0x2d0], 0xffffffff
call fcn.00404cf0
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
mov dword [esp + 0x2cc], 3
je 0x407ef3
call dword [sym.imp.WINMM.dll_timeGetTime]
push eax
mov ecx, edi
call fcn.00422f50
jmp 0x407ef5
xor eax, eax
push eax
mov ecx, ebx
mov dword [esp + 0x2d0], 0xffffffff
call fcn.0040b590
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x30]
mov al, 1
jmp 0x40865a
push 0xffffffffffffffff
push 1
push 0
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.0040a0f0
test al, al
je case.0x4082b3.5024
push 0x30
call fcn.00404e10
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
mov dword [esp + 0x2cc], 4
je 0x407f79
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebx + 0xc]
push edx
mov edx, dword [ebx + 8]
push eax
push ecx
push edx
push 0x143
lea ecx, [esi + 4]
call fcn.00424cb0
push eax
mov ecx, edi
call fcn.0040b4e0
mov ebx, eax
jmp 0x407f7b
xor ebx, ebx
or edi, 0xffffffff
push 0x10
mov dword [esp + 0x2d0], edi
call fcn.00404cf0
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x2cc], 5
je 0x407fb0
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, eax
call fcn.00422f50
jmp 0x407fb2
xor eax, eax
push eax
mov ecx, ebx
mov dword [esp + 0x2d0], edi
call fcn.0040b590
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x30]
mov al, 1
jmp 0x40865a
cmp eax, 0x1394
jg 0x408145
je 0x408120
sub eax, 0x143
je 0x4080d2
sub eax, 0x1c
jne case.0x4082b3.5024
xor eax, eax
mov byte [esp + 0xb8], 0
mov ecx, 0x3f
lea edi, [esp + 0xb9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x100
push 4
stosb byte es:[edi], al
push 0
lea eax, [esp + 0xc4]
push eax
mov ecx, ebx
call fcn.0040a0f0
test al, al
je case.0x4082b3.5024
push 0x30
call fcn.00404e10
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
mov dword [esp + 0x2cc], 0
je 0x408078
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x2c]
mov eax, dword [ebx + 0xc]
push ecx
mov ecx, dword [ebx + 8]
push edx
push eax
push ecx
push 0x15f
lea ecx, [esi + 4]
call fcn.00424cb0
push eax
mov ecx, edi
call fcn.0040b4e0
mov edi, eax
jmp 0x40807a
xor edi, edi
or ebx, 0xffffffff
push 0xc
mov dword [esp + 0x2d0], ebx
call fcn.004509e6
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x2cc], 1
je 0x4080b2
lea edx, [esp + 0xb8]
push edx
mov ecx, eax
call fcn.004230b0
jmp 0x4080b4
xor eax, eax
push eax
mov ecx, edi
mov dword [esp + 0x2d0], ebx
call fcn.0040b590
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x30]
mov al, 1
jmp 0x40865a
push 0xffffffffffffffff
push 1
push 0
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.0040a0f0
mov edx, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
mov eax, edx
mov ecx, edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push eax
push edi
push edx
push str.Ping_from___u:_u____d_n
push 7
push esi
call fcn.0040d670
add esp, 0x18
jmp case.0x4082b3.5024
push 0xffffffffffffffff
push 1
push 0
lea eax, [esp + 0x2c]
push eax
mov ecx, ebx
call fcn.0040a0f0
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00405110
mov al, 1
jmp 0x40865a
cmp eax, 0x139d
jne case.0x4082b3.5024
mov edx, dword [0x4a993c]
xor eax, eax
mov byte [esp + 0x38], 0
mov ecx, 0xf
lea edi, [esp + 0x39]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x40
push 4
stosb byte es:[edi], al
push 0
lea eax, [esp + 0x44]
push eax
mov ecx, ebx
mov dword [esp + 0x30], edx
call fcn.0040a0f0
test al, al
je case.0x4082b3.5024
push 0xffffffffffffffff
push 0
push 1
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
call fcn.0040a0f0
test al, al
je case.0x4082b3.5024
push 0xc8
call fcn.004509e6
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x2cc], 6
je 0x4081d3
mov edx, dword [esp + 0x20]
push edx
mov ecx, eax
call fcn.0040da40
mov edi, eax
jmp 0x4081d5
xor edi, edi
xor eax, eax
mov ecx, 2
mov dword [edi + 8], ecx
mov dword [edi + 4], eax
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ecx, edi
mov dword [esp + 0x2d4], 0xffffffff
call fcn.00404ac0
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
mov dword [esi + 0x1e0], ecx
mov dword [esi + 0x1dc], eax
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x20]
mov ebx, eax
test ebx, ebx
je 0x408257
push ebx
push str.Failed_to_Connect_to_MatchServer__Err:_d__n
push 3
push esi
call fcn.0040d670
mov edx, dword [esi]
mov byte [esi + 0x38c], 0
mov byte [esi + 0x38d], 0
mov eax, dword [edi + 4]
mov dword [esp + 0x40], eax
mov ecx, dword [edi + 8]
add esp, 0x10
lea eax, [esp + 0x30]
mov dword [esp + 0x34], ecx
push eax
mov ecx, esi
call dword [edx + 0x28]
push ebx
push str.Try_to_Connect_to_MatchServer__Err:_d__n
push 3
push esi
call fcn.0040d670
add esp, 0x10
mov al, 1
jmp 0x40865a
mov edx, dword [esi]
lea edi, [esi + 0x1dc]
push edi
mov ecx, esi
call dword [edx + 0x28]
mov eax, dword [esi + 0x1e0]
mov ecx, dword [edi]
push eax
push ecx
push str.Disconnect_server___MUID__d_d__n
push 3
push esi
call fcn.0040d670
add esp, 0x14
mov al, 1
jmp 0x40865a
sub eax, 0x139f
cmp eax, 0x4f
ja case.0x4082b3.5024
movzx edx, byte [eax + 0x40879c]
jmp dword [edx*4 + 0x408774]
xor eax, eax
push 0xffffffffffffffff
push 9
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call fcn.0040a0f0
push 0xffffffffffffffff
push 9
push 1
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
call fcn.0040a0f0
mov edx, dword [esi]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call dword [edx + 0x64]
mov al, 1
jmp 0x40865a
push 0xffffffffffffffff
xor eax, eax
push 9
push eax
lea edx, [esp + 0x1c]
push edx
mov ecx, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
call fcn.0040a0f0
test al, al
je case.0x4082b3.5024
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.004057d0
mov al, 1
jmp 0x40865a
xor eax, eax
push 0xffffffffffffffff
push 9
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
call fcn.0040a0f0
test al, al
je case.0x4082b3.5024
push 0xffffffffffffffff
push 9
push 1
lea edx, [esp + 0x24]
push edx
mov ecx, ebx
call fcn.0040a0f0
test al, al
je case.0x4082b3.5024
push 0xffffffffffffffff
push 9
push 2
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
call fcn.0040a0f0
test al, al
je case.0x4082b3.5024
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00407a60
mov al, 1
jmp 0x40865a
push 0xffffffffffffffff
xor eax, eax
push 9
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
call fcn.0040a0f0
test al, al
je case.0x4082b3.5024
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], edx
push ecx
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
mov dword [esp + 0x34], eax
call fcn.00406350
mov al, 1
jmp 0x40865a
xor edx, edx
xor eax, eax
mov byte [esp + 0x78], dl
mov ecx, 0xf
lea edi, [esp + 0x79]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x38], dl
mov ecx, 0xf
lea edi, [esp + 0x39]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xffffffffffffffff
push 9
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], edx
call fcn.0040a0f0
push 0x40
push 4
push 1
lea ecx, [esp + 0x84]
push ecx
mov ecx, ebx
call fcn.0040a0f0
push 0xffffffffffffffff
push 1
push 2
lea edx, [esp + 0x2c]
push edx
mov ecx, ebx
call fcn.0040a0f0
push 0x40
push 4
push 3
lea eax, [esp + 0x44]
push eax
mov ecx, ebx
call fcn.0040a0f0
push 0xffffffffffffffff
push 1
push 4
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
call fcn.0040a0f0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x3c]
push eax
push ecx
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.004063e0
mov al, 1
jmp 0x40865a
push 0xffffffffffffffff
xor eax, eax
push 9
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
call fcn.0040a0f0
test al, al
je case.0x4082b3.5024
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00407c30
mov al, 1
jmp 0x40865a
push 0xffffffffffffffff
xor edi, edi
push 9
push edi
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
call fcn.0040a0f0
test al, al
je case.0x4082b3.5024
push 0xffffffffffffffff
push 9
push 1
lea edx, [esp + 0x1c]
push edx
mov ecx, ebx
call fcn.0040a0f0
test al, al
je case.0x4082b3.5024
push 2
mov ecx, ebx
call fcn.0040a0b0
cmp dword [eax + 4], 0xa
jne case.0x4082b3.5024
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x14]
mov ebx, eax
cmp ebx, edi
je case.0x4082b3.5024
push ebx
call fcn.0042eff0
add esp, 4
push eax
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00406ac0
mov al, 1
jmp 0x40865a
xor eax, eax
push 0xffffffffffffffff
push 9
push eax
lea edx, [esp + 0x2c]
push edx
mov ecx, ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
call fcn.0040a0f0
test al, al
je case.0x4082b3.5024
push 0xffffffffffffffff
push 9
push 1
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
call fcn.0040a0f0
test al, al
je case.0x4082b3.5024
push 2
mov ecx, ebx
call fcn.0040a0b0
mov edi, eax
cmp dword [edi + 4], 0xa
jne case.0x4082b3.5024
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x14]
mov ebx, eax
test ebx, ebx
je case.0x4082b3.5024
push ebx
call fcn.0042eff0
push ebx
mov dword [esp + 0x20], eax
call fcn.0042f000
mov ecx, dword [edi + 0xc]
add esp, 8
cmp eax, ecx
ja case.0x4082b3.5024
mov eax, dword [esp + 0x18]
push eax
push ebx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.00406ac0
mov al, 1
jmp 0x40865a
xor eax, eax
mov byte [esp + 0x1b8], 0
mov ecx, 0x3f
lea edi, [esp + 0x1b9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x100
push 4
stosb byte es:[edi], al
push 0
lea eax, [esp + 0x1c4]
push eax
mov ecx, ebx
call fcn.0040a0f0
test al, al
jne case.0x407ce2.100
xor al, al
mov ecx, dword [esp + 0x2c4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x2bc]
call fcn.0043b1ae
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4