Function at 0x40b700
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e4a6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x720
mov eax, dword [0x44d010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x724], edx
mov dword [ebp - 0x720], ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 0x728], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x72c], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x71c], eax
mov eax, dword [ebx + 0x14]
push ecx
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x730], eax
call fcn.00413cd0
add esp, 4
push 0x200
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00420150
mov eax, dword [ebp - 0x428]
add esp, 0xc
test eax, eax
jne 0x40bb3e
push 0x2a4
push eax
lea eax, [ebp - 0x6e0]
push eax
call fcn.00420150
add esp, 0xc
lea ecx, [ebp - 0x6e0]
call fcn.00410a60
push 0x208
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00420150
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x103
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
push 0x5c
push eax
call fcn.0041fadb
mov ecx, eax
add esp, 8
add eax, 2
test ecx, ecx
jne 0x40b819
lea eax, [ebp - 0x420]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x700]
call fcn.00406c30
push 1
mov byte [ebp - 4], 2
lea eax, [ebp - 0x700]
cmp dword [ebp - 0x6ec], 8
lea ecx, [ebp - 0x6e0]
push 1
cmovae eax, dword [ebp - 0x700]
push 0x4481a0
push eax
lea eax, [ebp - 0x718]
push eax
call fcn.00410c70
mov esi, eax
lea eax, [ebp - 0x438]
cmp eax, esi
je 0x40b8f5
mov ecx, dword [ebp - 0x424]
cmp ecx, 8
jb 0x40b8b4
mov edx, dword [ebp - 0x438]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b8aa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bfef
push ecx
push edx
call fcn.0041e43c
add esp, 8
mov dword [ebp - 0x428], 0
xor eax, eax
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x438], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x428], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x704]
cmp ecx, 8
jb 0x40b935
mov edx, dword [ebp - 0x718]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b92b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bfef
push ecx
push edx
call fcn.0041e43c
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x6ec]
mov dword [ebp - 0x708], 0
mov dword [ebp - 0x704], 7
mov word [ebp - 0x718], ax
cmp ecx, 8
jb 0x40b996
mov edx, dword [ebp - 0x700]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b98c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bfef
push ecx
push edx
call fcn.0041e43c
add esp, 8
cmp dword [ebp - 0x428], 0
je 0x40bb29
mov ecx, dword [ebp - 0x440]
test ecx, ecx
je 0x40b9bb
lea eax, [ebp - 0x718]
push eax
call fcn.004113a0
jmp 0x40b9cd
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x718]
call fcn.00407f90
cmp dword [ebp - 0x704], 8
lea eax, [ebp - 0x718]
push str.local.cfg
cmovae eax, dword [ebp - 0x718]
push eax
call fcn.004268fd
mov ecx, dword [ebp - 0x704]
add esp, 8
mov esi, eax
cmp ecx, 8
jb 0x40ba31
mov edx, dword [ebp - 0x718]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ba27
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bfef
push ecx
push edx
call fcn.0041e43c
add esp, 8
test esi, esi
je 0x40bb29
lea eax, [ebp - 0x700]
push eax
lea ecx, [ebp - 0x6e0]
call fcn.00410f80
mov esi, eax
lea eax, [ebp - 0x438]
cmp eax, esi
je 0x40badc
mov ecx, dword [ebp - 0x424]
cmp ecx, 8
jb 0x40ba9b
mov edx, dword [ebp - 0x438]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ba91
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bfef
push ecx
push edx
call fcn.0041e43c
add esp, 8
mov dword [ebp - 0x428], 0
xor eax, eax
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x438], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x428], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x6ec]
cmp ecx, 8
jb 0x40bb1c
mov edx, dword [ebp - 0x700]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40bb12
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bfef
push ecx
push edx
call fcn.0041e43c
add esp, 8
cmp dword [ebp - 0x428], 0
jne 0x40b9a3
lea ecx, [ebp - 0x6e0]
mov byte [ebp - 4], 0
call fcn.00410b10
mov eax, dword [ebp - 0x428]
mov edi, dword [ebp - 0x424]
lea esi, [ebp - 0x438]
mov edx, dword [ebp - 0x438]
cmp edi, 8
cmovae esi, edx
test eax, eax
je 0x40bfa1
dec eax
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
cmp word [esi + ecx*2], 0x5c
lea eax, [esi + ecx*2]
je 0x40bb82
cmp eax, esi
je 0x40bfa1
sub eax, 2
cmp word [eax], 0x5c
jne 0x40bb71
sub eax, esi
sar eax, 1
lea ecx, [eax + 1]
cmp eax, 0xffffffff
je 0x40bfa1
cmp dword [ebp - 0x428], ecx
jb 0x40bff4
cmp edi, 8
mov dword [ebp - 0x428], ecx
lea eax, [ebp - 0x438]
xorps xmm0, xmm0
cmovae eax, edx
movlpd qword [ebp - 0x6e8], xmm0
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, bind
mov ecx, dword [ebp - 0x428]
sub eax, ecx
cmp eax, 0xf
jb 0x40bff9
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
push 0xf
cmovae eax, dword [ebp - 0x438]
push str.xbaiservice.exe
push ecx
push eax
push ecx
push dword [ebp - 0x6e4]
lea ecx, [ebp - 0x700]
call fcn.00408ad0
cmp dword [ebp - 0x6ec], 8
lea ecx, [ebp - 0x700]
lea eax, [ebp - 0x6e8]
cmovae ecx, dword [ebp - 0x700]
lea edx, [ebp - 0x6e2]
push ecx
push eax
lea eax, [ebp - 0x6e6]
push eax
lea eax, [ebp - 0x6e4]
push eax
call fcn.00410650
mov ecx, dword [ebp - 0x6ec]
add esp, 0x10
cmp ecx, 8
jb 0x40bc7e
mov edx, dword [ebp - 0x700]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40bc74
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bffe
push ecx
push edx
call fcn.0041e43c
add esp, 8
movzx eax, word [ebp - 0x6e8]
push eax
movzx eax, word [ebp - 0x6e6]
push eax
movzx eax, word [ebp - 0x6e4]
push eax
movzx eax, word [ebp - 0x6e2]
push eax
push str._u._u._u._u
lea eax, [ebp - 0x218]
push 0xff
push eax
call fcn.00401150
lea ecx, [ebp - 0x218]
add esp, 0x1c
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bcc0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x71c]
push eax
call fcn.004071c0
push 9
push str.local.cfg
lea ecx, [ebp - 0x438]
call fcn.004072d0
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmovae eax, dword [ebp - 0x438]
push eax
push 0xff
lea eax, [ebp - 0x218]
push eax
push 0x447ed8
push 0x448230
push 0x448238
call esi
lea edx, [ebp - 0x218]
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40bd35
mov ecx, dword [ebp - 0x720]
lea eax, [ebp - 0x218]
sub edx, edi
sar edx, 1
push edx
push eax
call fcn.004071c0
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
push 0xff
lea eax, [ebp - 0x218]
push eax
push 0x447ed8
push 0x448240
push 0x448238
call esi
lea edx, [ebp - 0x218]
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40bd92
mov ecx, dword [ebp - 0x724]
lea eax, [ebp - 0x218]
sub edx, edi
sar edx, 1
push edx
push eax
call fcn.004071c0
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
push 0xff
lea eax, [ebp - 0x218]
push eax
push 0x447ed8
push 0x448248
push 0x448238
call esi
sub esp, 8
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x700]
call fcn.0040b5a0
mov ecx, dword [ebp - 0x728]
add esp, 8
push eax
call fcn.004089d0
mov ecx, dword [ebp - 0x6ec]
cmp ecx, 8
jb 0x40be49
mov edx, dword [ebp - 0x700]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40be3f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c003
push ecx
push edx
call fcn.0041e43c
add esp, 8
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
push 0xff
lea eax, [ebp - 0x218]
push eax
push 0x447ed8
push 0x448250
push 0x448238
call esi
sub esp, 8
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x700]
call fcn.0040b5a0
mov ecx, dword [ebp - 0x72c]
add esp, 8
push eax
call fcn.004089d0
mov ecx, dword [ebp - 0x6ec]
cmp ecx, 8
jb 0x40bede
mov edx, dword [ebp - 0x700]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40bed4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c008
push ecx
push edx
call fcn.0041e43c
add esp, 8
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
push 0xff
lea eax, [ebp - 0x218]
push eax
push 0x447ed8
push 0x448258
push str.server
call esi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bf20
mov edi, dword [ebp - 0x730]
lea eax, [ebp - 0x218]
sub ecx, edx
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.004071c0
cmp dword [edi + 0x10], 0
jne 0x40bf95
push 8
push 0x3fc
push 0
push 1
push str._u._u._u._u
lea eax, [ebp - 0x218]
push 0xff
push eax
call fcn.00401150
lea edx, [ebp - 0x218]
add esp, 0x1c
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40bf77
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.004071c0
mov edx, dword [ebp - 0x438]
mov edi, dword [ebp - 0x424]
cmp edi, 8
jb 0x40bfd1
lea edi, [edi*2 + 2]
mov eax, edx
cmp edi, 0x1000
jb 0x40bfc7
mov edx, dword [eax - 4]
add edi, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c00d
push edi
push edx
call fcn.0041e43c
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e3f9
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004267cc
call fcn.00407450
call fcn.00401320
call fcn.004267cc
call fcn.004267cc
call fcn.004267cc
call fcn.004267cc
int3