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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c5b0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x3a0
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x3b0]
mov ecx, pe_nt_image_headers32
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x485010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov eax, 5
mov word [ebp - 0x2ac], ax
mov dword [ebp - 0x2b8], 0
push 0xb
push 0
lea eax, [ebp - 0x120]
push eax
call fcn.00418870
add esp, 0xc
push 0xb
push 0
lea eax, [ebp - 0x134]
push eax
call fcn.00418870
add esp, 0xc
push 0x1e
push 0
lea eax, [ebp - 0x15c]
push eax
call fcn.00418870
add esp, 0xc
push 0x1f
push 0
lea eax, [ebp - 0x184]
push eax
call fcn.00418870
add esp, 0xc
push 0x64
push 0
lea eax, [ebp - 0xa0]
push eax
call fcn.00418870
add esp, 0xc
push 0x64
push 0
lea eax, [ebp - 0x10c]
push eax
call fcn.00418870
add esp, 0xc
push 0x78
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.00418870
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + eax*4 + 0x61a84], 0
je 0x40c4fe
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp - 0x294], eax
mov eax, dword [ebp + 0xc]
add eax, 6
mov dword [ebp - 0x28], eax
push 0xa
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x19c]
push ecx
call fcn.00413650
add esp, 0xc
mov eax, dword [ebp - 0x28]
add eax, 0xa
mov dword [ebp - 0x28], eax
push 0xa
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x184]
push ecx
call fcn.00413650
add esp, 0xc
mov eax, dword [ebp - 0x28]
add eax, 0xa
mov dword [ebp - 0x28], eax
push 0xa
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x120]
push ecx
call fcn.00413650
add esp, 0xc
mov eax, dword [ebp - 0x28]
add eax, 0xa
mov dword [ebp - 0x28], eax
push 0xa
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x134]
push ecx
call fcn.00413650
add esp, 0xc
mov eax, dword [ebp - 0x28]
add eax, 0xa
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x288], eax
mov eax, dword [ebp - 0x288]
mov ecx, dword [eax]
mov dword [ebp - 0x240], ecx
mov eax, dword [ebp - 0x28]
add eax, 4
mov dword [ebp - 0x28], eax
push 0x1e
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x15c]
push ecx
call fcn.00413650
add esp, 0xc
mov eax, dword [ebp - 0x28]
add eax, 0x1e
mov dword [ebp - 0x28], eax
push 0x78
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00413650
add esp, 0xc
mov eax, dword [ebp - 0x28]
add eax, 0x78
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x294]
movzx ecx, word [eax]
cmp ecx, 0xfa15
jne 0x40bff4
mov dword [ebp - 0x228], 1
jmp 0x40bc88
mov eax, dword [ebp - 0x228]
add eax, 1
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0xbb8
jge 0x40bff4
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + eax*4 + 0x64af4], 0
je 0x40bfef
lea eax, [ebp - 0x15c]
push eax
mov ecx, dword [ebp - 0x228]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx*4 + 0x64af4]
add eax, 0x3c
push eax
call fcn.0041adb0
add esp, 8
test eax, eax
jne 0x40bfef
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x228]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx*4 + 0x64af4]
add eax, 4
push eax
call fcn.0041adb0
add esp, 8
test eax, eax
jne 0x40bfef
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax*4 + 0x64af4]
movzx eax, byte [edx + 0x84]
cmp eax, 1
jne 0x40bfef
push 0xb
push 0
lea eax, [ebp - 0x2cc]
push eax
call fcn.00418870
add esp, 0xc
push 0xb
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax*4 + 0x64af4]
add edx, 0x74
push edx
lea eax, [ebp - 0x2cc]
push eax
call fcn.00413650
add esp, 0xc
lea eax, [ebp - 0x2cc]
push eax
call fcn.004190a0
add esp, 4
cmp eax, 5
jae 0x40bdac
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax*4 + 0x64af4]
mov byte [edx + 0x84], 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax*4 + 0x64af4]
add edx, 4
push edx
push 0
mov ecx, dword [ebp - 0x1c]
call fcn.00409d20
mov dword [ebp - 0x234], 0
jmp 0x40bdc7
mov eax, dword [ebp - 0x234]
add eax, 1
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0x64
jge 0x40bfd0
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + eax*4 + 0x639c4], 0
je case.0x40bf4a.1
lea eax, [ebp - 0x2cc]
push eax
mov ecx, dword [ebp - 0x234]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx*4 + 0x639c4]
add eax, 0x55
push eax
call fcn.0041adb0
add esp, 8
cmp eax, 1
jne case.0x40bf4a.1
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax*4 + 0x639c4]
mov eax, dword [edx + 0x50]
mov dword [ebp - 0x27c], eax
push 0x64
push 0
lea eax, [ebp - 0xa0]
push eax
call fcn.00418870
add esp, 0xc
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x288], eax
mov eax, dword [ebp - 0x288]
mov dword [eax], 0xfb504
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x2a0], eax
mov eax, dword [ebp - 0x2a0]
mov cx, word [ebp - 0x2ac]
mov word [eax], cx
lea eax, [ebp - 0x9a]
mov dword [ebp - 0x28], eax
push 0xa
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00413650
add esp, 0xc
mov eax, dword [ebp - 0x28]
add eax, 0xa
mov dword [ebp - 0x28], eax
movzx eax, word [ebp - 0x2ac]
mov esi, esp
push eax
lea ecx, [ebp - 0x2cc]
push ecx
lea edx, [ebp - 0x120]
push edx
push str.Force_Disconnect_Account__s__in_Game_Server__s_..._Count__d_
push 0x4884a0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
cmp esi, esp
call fcn.00418a80
push 0x4884a0
call fcn.00413cf0
add esp, 4
push 0
push 0x10
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 0x27c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx*4 + 0x6b854]
mov ecx, dword [eax + 0x24]
call fcn.00417b20
mov dword [ebp - 0x3ac], eax
mov ecx, dword [ebp - 0x3ac]
mov dword [ebp - 0x270], ecx
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x3ac], eax
mov ecx, dword [ebp - 0x3ac]
add ecx, 0x86
mov dword [ebp - 0x3ac], ecx
cmp dword [ebp - 0x3ac], 7
ja case.0x40bf4a.1
mov edx, dword [ebp - 0x3ac]
movzx eax, byte [edx + 0x40c638]
jmp dword [eax*4 + 0x40c630]
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax*4 + 0x61a84]
mov dword [ebp - 0x398], edx
mov eax, dword [ebp - 0x398]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x40bfad
mov esi, esp
push 1
mov ecx, dword [ebp - 0x3a4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x3a4]
mov eax, dword [edx]
call eax
cmp esi, esp
call fcn.00418a80
mov dword [ebp - 0x3ac], eax
mov ecx, dword [ebp - 0x3ac]
mov dword [ebp - 0x3b0], ecx
jmp 0x40bfb7
mov dword [ebp - 0x3b0], 0
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + eax*4 + 0x61a84], 0
jmp 0x40bdb8
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push 0xfb11
push 0xfb11
mov ecx, dword [ebp - 0x1c]
call fcn.00410240
jmp 0x40c4fe
jmp 0x40bc79
mov dword [ebp - 0x228], 0
jmp 0x40c00f
mov eax, dword [ebp - 0x228]
add eax, 1
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0xbb8
jge 0x40c0ad
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + eax*4 + 0x64af4], 0
je 0x40c0a8
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x228]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx*4 + 0x64af4]
add eax, 4
push eax
call fcn.0041adb0
add esp, 8
test eax, eax
jne 0x40c0a8
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax*4 + 0x64af4]
movzx eax, byte [edx + 0x84]
cmp eax, 1
jne 0x40c0a8
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov byte [eax], 1
mov eax, dword [ebp + 8]
push eax
push 1
lea ecx, [ebp - 0xa0]
push ecx
push 0xfb08
push 0xfb08
mov ecx, dword [ebp - 0x1c]
call fcn.00410240
jmp 0x40c4fe
jmp 0x40c000
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x83f70], 1
jne 0x40c0ec
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov byte [eax], 5
mov eax, dword [ebp + 8]
push eax
push 1
lea ecx, [ebp - 0xa0]
push ecx
push 0xfb09
push 0xfb09
mov ecx, dword [ebp - 0x1c]
call fcn.00410240
jmp 0x40c4fe
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x15c]
push ecx
lea edx, [ebp - 0x134]
push edx
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00407d60
mov dword [ebp - 0x3ac], eax
mov edx, dword [ebp - 0x3ac]
mov dword [ebp - 0x24c], edx
cmp dword [ebp - 0x24c], 0
jle 0x40c162
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov byte [eax], 4
mov eax, dword [ebp + 8]
push eax
push 1
lea ecx, [ebp - 0xa0]
push ecx
push 0xfb09
push 0xfb09
mov ecx, dword [ebp - 0x1c]
call fcn.00410240
jmp 0x40c4fe
lea eax, [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x258]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx*4 + 0x64af4]
add eax, 0xf
push eax
call fcn.0041adb0
add esp, 8
test eax, eax
je 0x40c1bc
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov byte [eax], 4
mov eax, dword [ebp + 8]
push eax
push 1
lea ecx, [ebp - 0xa0]
push ecx
push 0xfb09
push 0xfb09
mov ecx, dword [ebp - 0x1c]
call fcn.00410240
jmp 0x40c4fe
mov dword [ebp - 0x228], 0
jmp 0x40c1d7
mov eax, dword [ebp - 0x228]
add eax, 1
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0x64
jge 0x40c2c2
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + eax*4 + 0x639c4], 0
je 0x40c2bd
lea eax, [ebp - 0x15c]
push eax
mov ecx, dword [ebp - 0x228]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx*4 + 0x639c4]
add eax, 0x2c
push eax
call fcn.0041adb0
add esp, 8
test eax, eax
jne 0x40c2bd
mov dword [ebp - 0x234], 0
jmp 0x40c241
mov eax, dword [ebp - 0x234]
add eax, 1
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0x3e8
jge 0x40c2bd
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + eax*4 + 0x63b54], 0
je 0x40c2b8
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax*4 + 0x63b54]
mov eax, dword [edx + 0x24]
cmp eax, dword [ebp - 0x228]
jne 0x40c2b8
lea eax, [ebp - 0x184]
push eax
mov ecx, dword [ebp - 0x234]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx*4 + 0x63b54]
add eax, 4
push eax
call fcn.0041adb0
add esp, 8
test eax, eax
jne 0x40c2b8
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x2b8], 1
jmp 0x40c232
jmp 0x40c1c8
cmp dword [ebp - 0x2b8], 0
jne 0x40c33c
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov byte [eax], 3
mov eax, dword [ebp + 8]
push eax
push 1
lea ecx, [ebp - 0xa0]
push ecx
push 0xfb09
push 0xfb09
mov ecx, dword [ebp - 0x1c]
call fcn.00410240
mov esi, esp
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x184]
push ecx
lea edx, [ebp - 0x15c]
push edx
push str.GameServer__s__s__for__s_is_not_registered.
push 0x4884a0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
cmp esi, esp
call fcn.00418a80
push 0x4884a0
call fcn.00413cf0
add esp, 4
jmp 0x40c4fe
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x34], eax
push 0xa
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00413650
add esp, 0xc
mov eax, dword [ebp - 0x34]
add eax, 0xa
mov dword [ebp - 0x34], eax
push 0xa
lea eax, [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00413650
add esp, 0xc
mov eax, dword [ebp - 0x34]
add eax, 0xa
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x288], eax
mov eax, dword [ebp - 0x288]
mov ecx, dword [ebp - 0x240]
mov dword [eax], ecx
mov eax, dword [ebp - 0x34]
add eax, 4
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x34], eax
push 0x10
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax*4 + 0x639c4]
add edx, 0x18
push edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.00413650
add esp, 0xc
mov eax, dword [ebp - 0x34]
add eax, 0x10
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x288], eax
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax*4 + 0x639c4]
mov eax, dword [ebp - 0x288]
mov ecx, dword [edx + 0x28]
mov dword [eax], ecx
mov eax, dword [ebp - 0x34]
add eax, 2
mov dword [ebp - 0x34], eax
push 0x14
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax*4 + 0x639c4]
add edx, 4
push edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.00413650
add esp, 0xc
mov eax, dword [ebp - 0x34]
add eax, 0x14
mov dword [ebp - 0x34], eax
push 0xb
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx*4 + 0x61a84]
add eax, 0x4a
push eax
call fcn.00413650
add esp, 0xc
push 0x1e
lea eax, [ebp - 0x15c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx*4 + 0x61a84]
add eax, 0x1c
push eax
call fcn.00413650
add esp, 0xc
mov eax, dword [ebp - 0x240]
push eax
push 0
lea ecx, [ebp - 0x134]
push ecx
lea edx, [ebp - 0x120]
push edx
push 1
mov ecx, dword [ebp - 0x1c]
call fcn.00409d20
mov dword [ebp - 0x3ac], eax
cmp dword [ebp - 0x3ac], 0
je 0x40c4c2
mov eax, dword [ebp + 8]
push eax
push 0x26
lea ecx, [ebp - 0x10c]
push ecx
push 0xfb10
push 0xfb10
mov ecx, dword [ebp - 0x1c]
call fcn.00410240
jmp 0x40c4d9
push 0
push 0
push 0
lea eax, [ebp - 0x120]
push eax
push 0
mov ecx, dword [ebp - 0x1c]
call fcn.00409d20
jmp 0x40c4ee
mov dword [ebp - 4], 0xffffffff
jmp 0x40c4fe
push edx
mov ecx, ebp
push eax
lea edx, [0x40c53c]
call fcn.00418a20
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00419b10
add esp, 0x3b0
cmp ebp, esp
call fcn.00418a80
mov esp, ebp
pop ebp
ret 8