Function at 0x403940
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x42b040]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
mov esi, ecx
mov byte [esp + 0xf], dl
imul ecx, esi, 0x70
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0x43047c], eax
movzx eax, byte [esp + 0x13]
cmp eax, 0x30
ja case.0x40398f.3
movzx eax, byte [eax + 0x403cd4]
jmp dword [eax*4 + 0x403cb4]
mov eax, dword [esp + 0x2c]
lea ecx, [ecx + 0x430440]
movzx esi, word [edi + 0x38]
add eax, 6
movzx edi, word [edi + 4]
push eax
push 0x32
push ecx
call fcn.0040bc90
mov ecx, dword [esp + 0x34]
add esp, 0xc
push esi
push edi
lea eax, [ecx + 0x430424]
mov word [ecx + 0x430472], di
push eax
lea eax, [ecx + 0x430440]
mov word [ecx + 0x430474], si
push eax
push str._SocketUDP__GameServer_connected___s____s:_d___d_
push 2
call fcn.00408230
add esp, 0x18
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00408618
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.00403d10
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00408618
mov esp, ebp
pop ebp
ret
movzx eax, word [edi + 4]
lea ecx, [edi + 6]
movq xmm0, qword [ecx]
mov word [esp + 0x18], ax
movzx eax, word [ecx + 8]
mov word [esp + 0x22], ax
mov al, byte [ecx + 0xa]
mov byte [esp + 0x24], al
lea eax, [esp + 0x30]
push ecx
push eax
mov word [esp + 0x1c], 0x12c1
mov byte [esp + 0x1e], 2
movq qword [esp + 0x22], xmm0
mov byte [esp + 0x2d], 1
call fcn.00401490
test al, al
jne 0x403a66
push 0x12
lea eax, [esp + 0x18]
push eax
push esi
jmp 0x403c96
mov ax, word [esp + 0x4c]
cmp ax, word [edi + 4]
jne 0x403a59
mov ecx, dword [esp + 0x28]
mov ax, word [esp + 0x4e]
cmp ax, word [ecx + 0x430474]
jne 0x403a59
cmp byte [esp + 0x50], 0
je 0x403a9b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x54]
cmp eax, 0x7530
jb 0x403a59
push 0x12
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00407550
movups xmm0, xmmword [esp + 0x30]
sub esp, 0x40
mov eax, esp
movups xmmword [eax], xmm0
movups xmm0, xmmword [esp + 0x80]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [esp + 0x90]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [esp + 0xa0]
movups xmmword [eax + 0x30], xmm0
call fcn.00401990
movzx eax, word [esp + 0x4e]
push eax
lea eax, [esp + 0x3f]
push eax
lea eax, [esp + 0x38]
push eax
push str._AccountInfo__Account_disconnected__Account:__s__IpAddress:__s__GameServerCode:__d_
push 1
push 0x42bad8
call fcn.00404690
add esp, 0x18
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00408618
mov esp, ebp
pop ebp
ret
lea eax, [edi + 6]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00401490
test al, al
je case.0x40398f.3
movzx eax, word [edi + 4]
movq xmm0, qword [edi + 6]
mov word [esp + 0x34], ax
xor eax, eax
mov word [esp + 0x42], ax
movzx eax, word [edi + 0xe]
mov word [esp + 0x3e], ax
mov al, byte [edi + 0x10]
mov byte [esp + 0x40], al
lea eax, [esp + 0x30]
push 0x28
push eax
mov word [esp + 0x38], 0x28c1
mov byte [esp + 0x3a], 5
movq qword [esp + 0x3e], xmm0
push esi
jmp 0x403c9b
push dword [edi + 0x14]
movzx eax, word [edi + 0x12]
xorps xmm0, xmm0
push eax
lea eax, [edi + 6]
push eax
sub esp, 0x18
mov esi, esp
push 0x30
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00408634
mov ecx, eax
mov dword [esi + 0x10], 0x29
mov dword [esi], ecx
add esp, 4
mov dword [esi + 0x14], 0x2f
movups xmm0, xmmword [str.CALL_WZ_SetAccountLevel__s___d___d_]
push 0x42c11c
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x427114]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [0x427124]
movq qword [ecx + 0x20], xmm0
mov al, byte [0x42712c]
mov byte [ecx + 0x28], al
mov byte [ecx + 0x29], 0
call fcn.00405840
mov ecx, dword [0x42c138]
add esp, 0x28
mov eax, dword [ecx]
call dword [eax + 0xb8]
mov ecx, 0x42c11c
call fcn.00406050
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00408618
mov esp, ebp
pop ebp
ret
movzx eax, word [edi + 4]
mov dword [ecx + 0x430480], eax
movzx eax, word [edi + 6]
mov dword [ecx + 0x430484], eax
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00408618
mov esp, ebp
pop ebp
ret
lea eax, [edi + 3]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00401490
test al, al
je case.0x40398f.3
mov ecx, dword [esp + 0x4e]
call fcn.00408390
mov edx, eax
test edx, edx
je case.0x40398f.3
mov ax, word [esp + 0x38]
mov cx, word [esp + 0x4c]
movq xmm0, qword [esp + 0x30]
mov word [esp + 0x22], ax
mov al, byte [esp + 0x3a]
mov byte [esp + 0x24], al
lea eax, [esp + 0x14]
push 0x12
push eax
push dword [edx + 4]
mov word [esp + 0x20], 0x12c1
mov byte [esp + 0x22], 2
mov word [esp + 0x24], cx
movq qword [esp + 0x26], xmm0
mov byte [esp + 0x31], 0
call fcn.00407550
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
xor ecx, esp
call fcn.00408618
mov esp, ebp
pop ebp
ret