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

Disassembly:
push 0xffffffffffffffff
push 0x4b2768
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ce0a0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x6c]
mov ebx, dword [esp + 0x68]
test esi, esi
jne 0x405cdc
call fcn.00460810
cmp dword [esi + 8], 0
ja 0x405ce7
call fcn.00460810
cmp dword [0x5139ec], 0
je 0x405cf5
call fcn.00460810
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x64]
mov dword [0x4d2458], eax
mov eax, dword [esp + 0x74]
mov dword [0x4d2468], edx
mov edx, dword [edi + 4]
mov esi, dword [edx]
mov dword [0x4d245c], ecx
mov dword [0x4d2460], ebx
mov dword [0x4d2464], edi
mov dword [0x4d2454], eax
lea esp, [esp]
cmp esi, edx
sete al
test al, al
sete al
test al, al
je 0x405d86
cmp esi, dword [edi + 4]
je 0x405d7c
mov ebp, dword [ebx + 4]
mov edi, dword [esi + 8]
mov eax, dword [ebp]
lea esp, [esp]
cmp eax, ebp
je 0x405d6d
cmp eax, dword [ebx + 4]
je 0x405d81
mov ecx, dword [eax + 8]
mov bl, byte [ecx]
cmp bl, byte [edi]
mov ebx, dword [esp + 0x68]
je 0x405d6a
mov eax, dword [eax]
jmp 0x405d50
mov dword [edi + 2], ecx
mov ecx, dword [esp + 0x6c]
cmp esi, dword [ecx + 4]
je 0x405d7c
mov esi, dword [esi]
mov edi, ecx
jmp 0x405d30
jmp 0x416f30
jmp 0x416c70
mov edx, dword [esp + 0x70]
mov eax, dword [edx + 4]
mov esi, dword [eax]
mov dword [esp + 0x68], eax
cmp esi, eax
sete al
test al, al
sete al
test al, al
je 0x405de1
mov eax, dword [esp + 0x70]
cmp esi, dword [eax + 4]
je 0x405ddc
mov ebp, dword [ebx + 4]
mov edi, dword [esi + 8]
mov eax, dword [ebp]
cmp eax, ebp
je 0x405dcb
mov ecx, dword [eax + 8]
mov dl, byte [ecx]
cmp dl, byte [edi + 2]
je 0x405dc5
mov eax, dword [eax]
jmp 0x405db3
mov dword [edi + 0x228], ecx
mov eax, dword [esp + 0x70]
cmp esi, dword [eax + 4]
je 0x405ddc
mov esi, dword [esi]
mov eax, dword [esp + 0x68]
jmp 0x405d93
jmp 0x4171f0
mov ecx, dword [esp + 0x78]
mov eax, dword [ecx + 4]
mov eax, dword [eax]
cmp eax, dword [ecx + 4]
mov edx, dword [esp + 0x7c]
mov dword [0x4d246c], ecx
mov dword [0x4d2470], edx
jne 0x405e04
jmp fcn.00417770
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x74]
mov dword [0x4d2450], eax
mov ebp, dword [ecx + 4]
mov esi, dword [ebp]
cmp esi, ebp
sete al
test al, al
sete al
test al, al
je 0x405e59
mov edx, dword [esp + 0x74]
cmp esi, dword [edx + 4]
je 0x405e54
mov eax, dword [esi + 8]
mov ecx, dword [eax]
lea ebx, [esp + 0x14]
lea edi, [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
call fcn.0040a590
mov edx, dword [esp + 0x74]
cmp esi, dword [edx + 4]
je 0x405e54
mov esi, dword [esi]
jmp 0x405e16
jmp 0x4174b0
mov eax, dword [0x4d246c]
mov edx, dword [eax + 4]
mov ecx, dword [edx]
mov esi, eax
test esi, esi
mov dword [esp + 0x70], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], eax
je 0x4063ed
lea ecx, [ecx]
cmp esi, dword [esp + 0x24]
jne 0x4063ed
cmp ecx, edx
sete al
test al, al
sete al
test al, al
je 0x406005
cmp ecx, dword [esi + 4]
je 0x405dff
mov esi, dword [ecx + 8]
movzx eax, byte [esi + 0xa]
push eax
call fcn.00406950
mov ecx, dword [esi + 6]
add esp, 4
push ecx
mov dword [esi + 0x14], eax
call fcn.00406400
mov edi, dword [0x4d245c]
add esp, 4
xor ebx, ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
mov ebp, dword [edi + 4]
mov eax, dword [ebp]
cmp edi, ebx
je 0x406000
cmp edi, edi
jne 0x406000
cmp eax, ebp
je 0x405efd
mov ecx, dword [eax + 8]
mov dl, byte [ecx]
cmp dl, byte [esi + 2]
je 0x405efa
mov eax, dword [eax]
jmp 0x405ed8
mov dword [esi + 0x1c], ecx
mov edi, dword [0x4d2460]
mov dword [esi + 0x20], ebx
mov ebp, dword [edi + 4]
mov eax, dword [ebp]
lea esp, [esp]
cmp edi, ebx
je 0x405ffb
cmp edi, edi
jne 0x405ffb
cmp eax, ebp
je 0x405f35
mov ecx, dword [eax + 8]
mov dl, byte [ecx]
cmp dl, byte [esi + 3]
je 0x405f32
mov eax, dword [eax]
jmp 0x405f10
mov dword [esi + 0x20], ecx
mov edx, dword [0x4d2468]
mov dword [esi + 0x24], ebx
mov edi, dword [edx + 4]
mov eax, dword [edi]
cmp edx, ebx
je 0x405ff6
cmp edx, edx
jne 0x405ff6
cmp eax, edi
je 0x405f6a
mov ecx, dword [eax + 8]
mov bp, word [ecx]
cmp bp, word [esi + 4]
je 0x405f67
mov eax, dword [eax]
jmp 0x405f43
mov dword [esi + 0x24], ecx
cmp byte [esi + 2], 0
je 0x405f9b
cmp byte [esi + 3], 0
jne 0x405f9b
cmp word [esi + 4], bx
jne 0x405f9b
push str.GlobalManager
call fcn.004069b0
add esp, 4
cmp dword [esi + 0x14], eax
jne 0x405f9b
mov eax, dword [esi + 0x1c]
mov cx, word [esi]
mov word [eax + 0x121], cx
push str.MachineManager
call fcn.004069b0
add esp, 4
cmp dword [esi + 0x14], eax
jne 0x405fb7
mov edx, dword [esi + 0x18]
mov ax, word [esi]
mov word [edx + 0x45], ax
mov cx, word [esi]
lea ebx, [esp + 0x1c]
lea edi, [esp + 0x2c]
mov word [esp + 0x1c], cx
mov dword [esp + 0x20], esi
call fcn.00409ee0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
cmp eax, dword [edx + 4]
je 0x405dff
mov eax, dword [eax]
mov edx, dword [esp + 0x70]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov ecx, eax
jmp 0x405e80
jmp 0x417260
jmp 0x416ce0
jmp 0x416a20
mov edi, dword [0x4d2470]
test edi, edi
mov ebp, dword [edi + 4]
mov esi, dword [ebp]
mov dword [esp + 0x24], edi
je 0x4063e8
lea ecx, [ecx]
cmp edi, dword [esp + 0x24]
jne 0x4063e8
cmp esi, ebp
sete al
test al, al
sete al
test al, al
je 0x406073
cmp esi, dword [edi + 4]
je 0x40606e
mov eax, dword [esi + 8]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
mov dword [eax + 0xd], 0
mov dword [esp + 0x20], eax
push edx
lea eax, [esp + 0x30]
push eax
mov ebx, 0x5139f0
mov dword [esp + 0x24], ecx
call fcn.0040a0d0
cmp esi, dword [edi + 4]
je 0x40606e
mov esi, dword [esi]
jmp 0x406020
jmp fcn.00417a60
call fcn.004058d0
mov eax, dword [0x4d2468]
mov ebp, dword [eax + 4]
mov esi, dword [ebp]
mov ecx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
lea ecx, [ecx]
cmp ecx, dword [esp + 0x24]
jne 0x405ff6
cmp esi, ebp
sete al
test al, al
sete al
test al, al
je 0x4060e0
cmp esi, dword [ecx + 4]
je 0x405ddc
mov eax, dword [esi + 8]
mov cx, word [eax]
lea ebx, [esp + 0x1c]
lea edi, [esp + 0x2c]
mov word [esp + 0x1c], cx
mov dword [esp + 0x20], eax
call fcn.00409ad0
mov edx, dword [esp + 0x14]
cmp esi, dword [edx + 4]
je 0x405ddc
mov esi, dword [esi]
mov ecx, edx
jmp 0x406090
mov eax, dword [0x4d24a8]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406106
mov ecx, dword [0x4d24a8]
push 0
push 0
push 0x7e8
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
call fcn.00411990
xor edi, edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x58], edi
mov eax, dword [0x4d2450]
movzx ecx, word [eax]
lea edx, [esp + 0x38]
push edx
push ecx
call fcn.00405640
mov eax, dword [esp + 0x44]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
mov ebx, edx
add esp, 8
mov dword [esp + 0x2c], ebx
mov ebp, ecx
mov dword [esp + 0x28], eax
jmp 0x406150
lea edx, [esp + 0x38]
cmp ebx, edx
jne 0x4063e8
cmp ebp, dword [esp + 0x28]
sete al
test al, al
sete al
test al, al
je 0x406311
cmp ebp, dword [ebx + 4]
je 0x40606e
mov esi, dword [ebp + 8]
mov edi, dword [0x4d2450]
call fcn.00406550
mov esi, eax
test esi, esi
je 0x406273
mov eax, dword [esi + 0x14]
mov al, byte [eax]
cmp al, 2
je 0x4061a6
cmp al, 3
je 0x4061a6
cmp al, 4
je 0x4061a6
cmp al, 5
jne 0x4061c2
mov ecx, dword [0x4d2450]
mov edx, dword [ecx + 0x14]
cmp al, byte [edx]
jne 0x4061b8
call fcn.00460810
cmp dword [esi + 0x24], 0
jne 0x406286
mov eax, dword [0x4d2450]
cmp dword [eax + 0x24], 0
je 0x4061d7
cmp dword [esi + 0x24], 0
jne 0x406273
mov edx, dword [0x513a74]
mov eax, dword [edx + 4]
cmp byte [eax + 0xf], 0
mov ecx, edx
jne 0x406205
movzx edi, word [esi]
jmp 0x4061f0
cmp word [eax + 0xc], di
jae 0x4061fb
mov eax, dword [eax + 8]
jmp 0x4061ff
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xf], 0
je 0x4061f0
cmp ecx, edx
mov edi, 0x513a70
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edi
je 0x406225
mov ax, word [esi]
cmp ax, word [ecx + 0xc]
jb 0x406225
lea eax, [esp + 0x1c]
jmp 0x406231
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edi
lea eax, [esp + 0x14]
mov ecx, dword [eax]
test ecx, ecx
mov eax, dword [eax + 4]
je 0x40630c
cmp ecx, edi
jne 0x40630c
cmp eax, edx
jne 0x406273
mov ecx, dword [esi + 0x14]
movzx edx, word [esi]
add ecx, 1
push ecx
push edx
push str.Add_ServerNotify_:___d_____s
push 0
call fcn.0042b670
add esp, 0x10
mov ebx, esi
lea edi, [esp + 0x44]
call fcn.0040b1c0
mov ebx, dword [esp + 0x2c]
cmp ebp, dword [ebx + 4]
je 0x40606e
mov ebp, dword [ebp]
xor edi, edi
jmp 0x406150
push str.kek____why_did_you_assign_shard_to_common_manager_server______plz_check_out_server_license_table____
call fcn.0045f670
add esp, 4
push str.kek____why_did_you_assign_shard_to_common_manager_server______plz_check_out_server_license_table____
push 0x2000000
call fcn.0042b670
add esp, 8
mov dword [esp + 0x58], 0xffffffff
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x3c]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
mov dword [esp + 0x40], 0
je 0x4062e5
lea esp, [esp]
mov esi, dword [eax]
push eax
call fcn.00481c39
mov ecx, dword [esp + 0x40]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x4062d0
push ecx
call fcn.00481c39
add esp, 4
mov dword [esp + 0x3c], 0
xor al, al
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
jmp fcn.004105f0
cmp dword [0x513a78], edi
jne 0x406387
push str.There_is_no_server_notify_target_____check_whether_Farm_has_assigned_shard_or_not..._
call fcn.0045f670
add esp, 4
push str.There_is_no_server_notify_target_____check_whether_Farm_has_assigned_shard_or_not..._
push 0x2000000
call fcn.0042b670
add esp, 8
mov dword [esp + 0x58], 0xffffffff
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x3c]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
mov dword [esp + 0x40], edi
je 0x406375
jmp 0x406360
mov esi, dword [eax]
push eax
call fcn.00481c39
mov ecx, dword [esp + 0x40]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x406360
push ecx
call fcn.00481c39
add esp, 4
mov dword [esp + 0x3c], edi
jmp 0x4062f6
mov dword [esp + 0x58], 0xffffffff
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x3c]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
mov dword [esp + 0x40], edi
je 0x4063c5
lea ebx, [ebx]
mov esi, dword [eax]
push eax
call fcn.00481c39
mov ecx, dword [esp + 0x40]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x4063b0
push ecx
call fcn.00481c39
add esp, 4
mov dword [esp + 0x3c], edi
mov al, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
jmp fcn.00417ad0
jmp fcn.004177e0