Function at 0x40b5e0
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 0x43f066
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x520
mov eax, dword [0x44e040]
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 - 0x508], edx
mov dword [ebp - 0x504], ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 0x50c], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x510], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x500], eax
mov eax, dword [ebx + 0x14]
push ecx
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x514], eax
call fcn.00413e90
add esp, 4
push 0x200
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00420d70
mov eax, dword [ebp - 0x220]
add esp, 0xc
test eax, eax
jne 0x40b9bc
push 0x2a4
push eax
lea eax, [ebp - 0x4d8]
push eax
call fcn.00420d70
add esp, 0xc
lea ecx, [ebp - 0x4d8]
call fcn.00410700
lea ecx, [ebp - 0x52c]
mov byte [ebp - 4], 1
call fcn.0040f300
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 7
jbe 0x40b6c6
mov eax, dword [eax]
push 1
push 1
push 0x4491bc
push eax
lea eax, [ebp - 0x4fc]
push eax
lea ecx, [ebp - 0x4d8]
call fcn.00410950
mov esi, eax
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x40b773
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x40b732
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b728
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c04b
push ecx
push edx
call fcn.0041eebc
add esp, 8
mov dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x220], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x4e8]
cmp ecx, 7
jbe 0x40b7b3
mov edx, dword [ebp - 0x4fc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b7a9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c04b
push ecx
push edx
call fcn.0041eebc
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x518]
mov dword [ebp - 0x4ec], 0
mov dword [ebp - 0x4e8], 7
mov word [ebp - 0x4fc], ax
cmp ecx, 7
jbe 0x40b814
mov edx, dword [ebp - 0x52c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b80a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c04b
push ecx
push edx
call fcn.0041eebc
add esp, 8
cmp dword [ebp - 0x220], 0
je 0x40b9a7
mov ecx, dword [ebp - 0x238]
test ecx, ecx
je 0x40b839
lea eax, [ebp - 0x4fc]
push eax
call fcn.00411110
jmp 0x40b84b
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x4fc]
call fcn.00407f70
cmp dword [ebp - 0x4e8], 7
lea eax, [ebp - 0x4fc]
push str.local.cfg
cmova eax, dword [ebp - 0x4fc]
push eax
call fcn.0042751d
mov ecx, dword [ebp - 0x4e8]
add esp, 8
mov esi, eax
cmp ecx, 7
jbe 0x40b8af
mov edx, dword [ebp - 0x4fc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b8a5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c04b
push ecx
push edx
call fcn.0041eebc
add esp, 8
test esi, esi
je 0x40b9a7
lea eax, [ebp - 0x52c]
push eax
lea ecx, [ebp - 0x4d8]
call fcn.00410c80
mov esi, eax
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x40b95a
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x40b919
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b90f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c04b
push ecx
push edx
call fcn.0041eebc
add esp, 8
mov dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x220], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x518]
cmp ecx, 7
jbe 0x40b99a
mov edx, dword [ebp - 0x52c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b990
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c04b
push ecx
push edx
call fcn.0041eebc
add esp, 8
cmp dword [ebp - 0x220], 0
jne 0x40b821
lea ecx, [ebp - 0x4d8]
mov byte [ebp - 4], 0
call fcn.004107f0
mov eax, dword [ebp - 0x220]
mov edi, dword [ebp - 0x21c]
lea esi, [ebp - 0x230]
mov edx, dword [ebp - 0x230]
cmp edi, 7
cmova esi, edx
test eax, eax
je 0x40bffd
dec eax
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
cmp word [esi + ecx*2], 0x5c
lea eax, [esi + ecx*2]
je 0x40ba01
nop
cmp eax, esi
je 0x40bffd
sub eax, 2
cmp word [eax], 0x5c
jne 0x40b9f0
sub eax, esi
sar eax, 1
lea ecx, [eax + 1]
cmp eax, 0xffffffff
je 0x40bffd
cmp dword [ebp - 0x220], ecx
jb 0x40c050
cmp edi, 7
mov dword [ebp - 0x220], ecx
lea eax, [ebp - 0x230]
xorps xmm0, xmm0
cmova eax, edx
movlpd qword [ebp - 0x4e4], xmm0
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, bind
mov ecx, dword [ebp - 0x220]
sub eax, ecx
cmp eax, 0xf
jb 0x40c055
cmp dword [ebp - 0x21c], 7
lea eax, [ebp - 0x230]
push 0xf
cmova eax, dword [ebp - 0x230]
push str.xbaiservice.exe
push ecx
push eax
push ecx
push dword [ebp - 0x4e0]
lea ecx, [ebp - 0x4fc]
call fcn.004089f0
cmp dword [ebp - 0x4e8], 7
lea ecx, [ebp - 0x4fc]
lea eax, [ebp - 0x4e4]
cmova ecx, dword [ebp - 0x4fc]
lea edx, [ebp - 0x4de]
push ecx
push eax
lea eax, [ebp - 0x4e2]
push eax
lea eax, [ebp - 0x4e0]
push eax
call fcn.004102d0
mov ecx, dword [ebp - 0x4e8]
add esp, 0x10
mov byte [ebp - 0x4d9], al
cmp ecx, 7
jbe 0x40bb09
mov edx, dword [ebp - 0x4fc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40baf9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c05a
push ecx
push edx
call fcn.0041eebc
mov al, byte [ebp - 0x4d9]
add esp, 8
test al, al
je 0x40bb76
movzx eax, word [ebp - 0x4e4]
push eax
movzx eax, word [ebp - 0x4e2]
push eax
movzx eax, word [ebp - 0x4e0]
push eax
movzx eax, word [ebp - 0x4de]
push eax
push 0x448c74
lea eax, [ebp - 0x218]
push 0xff
push eax
call fcn.00401190
lea ecx, [ebp - 0x218]
add esp, 0x1c
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bb50
mov edi, dword [ebp - 0x500]
lea eax, [ebp - 0x218]
sub ecx, edx
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00407160
jmp 0x40bb7c
mov edi, dword [ebp - 0x500]
push 9
push str.local.cfg
lea ecx, [ebp - 0x230]
call fcn.00407270
cmp dword [edi + 0x10], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jne 0x40bbf3
cmp dword [ebp - 0x21c], 7
lea eax, [ebp - 0x230]
cmova eax, dword [ebp - 0x230]
push eax
push 0xff
lea eax, [ebp - 0x218]
push eax
push 0x448ee8
push 0x44924c
push 0x449254
call esi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bbd5
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00407160
cmp dword [ebp - 0x21c], 7
lea eax, [ebp - 0x230]
cmova eax, dword [ebp - 0x230]
push eax
push 0xff
lea eax, [ebp - 0x218]
push eax
push 0x448ee8
push 0x44925c
push 0x449254
call esi
lea edx, [ebp - 0x218]
lea edi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40bc30
mov ecx, dword [ebp - 0x504]
lea eax, [ebp - 0x218]
sub edx, edi
sar edx, 1
push edx
push eax
call fcn.00407160
cmp dword [ebp - 0x21c], 7
lea eax, [ebp - 0x230]
cmova eax, dword [ebp - 0x230]
push eax
push 0xff
lea eax, [ebp - 0x218]
push eax
push 0x448ee8
push 0x449264
push 0x449254
call esi
lea edx, [ebp - 0x218]
lea edi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40bc90
mov ecx, dword [ebp - 0x508]
lea eax, [ebp - 0x218]
sub edx, edi
sar edx, 1
push edx
push eax
call fcn.00407160
cmp dword [ebp - 0x21c], 7
lea eax, [ebp - 0x230]
cmova eax, dword [ebp - 0x230]
push eax
push 0xff
lea eax, [ebp - 0x218]
push eax
push 0x448ee8
push 0x44926c
push 0x449254
call esi
sub esp, 8
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x52c]
call fcn.0040b420
mov ecx, dword [ebp - 0x50c]
add esp, 8
push eax
call fcn.004088f0
mov ecx, dword [ebp - 0x518]
cmp ecx, 7
jbe 0x40bd47
mov edx, dword [ebp - 0x52c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40bd3d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c05f
push ecx
push edx
call fcn.0041eebc
add esp, 8
cmp dword [ebp - 0x21c], 7
lea eax, [ebp - 0x230]
cmova eax, dword [ebp - 0x230]
push eax
push 0xff
lea eax, [ebp - 0x218]
push eax
push 0x448ee8
push 0x449274
push 0x449254
call esi
sub esp, 8
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x52c]
call fcn.0040b420
mov ecx, dword [ebp - 0x510]
add esp, 8
push eax
call fcn.004088f0
mov ecx, dword [ebp - 0x518]
cmp ecx, 7
jbe 0x40bddc
mov edx, dword [ebp - 0x52c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40bdd2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c064
push ecx
push edx
call fcn.0041eebc
add esp, 8
cmp dword [ebp - 0x21c], 7
lea eax, [ebp - 0x230]
cmova eax, dword [ebp - 0x230]
push eax
push 0xff
lea eax, [ebp - 0x218]
push eax
push 0x448ee8
push 0x44927c
push str.server
call esi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40be17
mov edi, dword [ebp - 0x514]
lea eax, [ebp - 0x218]
sub ecx, edx
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00407160
cmp dword [edi + 0x10], 0
jne 0x40bff1
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x454798]
cmp eax, dword [ecx + 4]
jle 0x40beb0
push 0x454798
call fcn.0041ef72
add esp, 4
cmp dword [0x454798], 0xffffffff
jne 0x40beb0
xorps xmm0, xmm0
mov dword [0x4547ac], 0
xor eax, eax
mov dword [0x4547b0], 7
movups xmmword [0x45479c], xmm0
push 0x4404c0
mov word [0x45479c], ax
call fcn.0041f212
add esp, 4
push 0x454798
call fcn.0041ef21
add esp, 4
mov ecx, dword [0x4547ac]
test ecx, ecx
jne 0x40bfcd
call fcn.00408ae0
cmp dword [eax + 0x14], 0xf
jbe 0x40becb
mov eax, dword [eax]
push ecx
mov edx, eax
lea ecx, [ebp - 0x4fc]
call fcn.00417e20
mov esi, eax
add esp, 4
cmp esi, 0x45479c
je 0x40bf6a
mov ecx, dword [0x4547b0]
cmp ecx, 7
jbe 0x40bf2a
mov edx, dword [0x45479c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40bf20
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c069
push ecx
push edx
call fcn.0041eebc
add esp, 8
mov dword [0x4547ac], 0
xor eax, eax
mov dword [0x4547b0], 7
mov word [0x45479c], ax
movups xmm0, xmmword [esi]
movups xmmword [0x45479c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x4547ac], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x4e8]
cmp ecx, 7
jbe 0x40bfaa
mov edx, dword [ebp - 0x4fc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40bfa0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c069
push ecx
push edx
call fcn.0041eebc
add esp, 8
mov ecx, dword [0x4547ac]
xor eax, eax
mov dword [ebp - 0x4ec], 0
mov dword [ebp - 0x4e8], 7
mov word [ebp - 0x4fc], ax
cmp edi, 0x45479c
je 0x40bff1
cmp dword [0x4547b0], 7
mov eax, 0x45479c
push ecx
cmova eax, dword [0x45479c]
mov ecx, edi
push eax
call fcn.00407160
mov edx, dword [ebp - 0x230]
mov edi, dword [ebp - 0x21c]
cmp edi, 7
jbe 0x40c02d
lea edi, [edi*2 + 2]
mov eax, edx
cmp edi, 0x1000
jb 0x40c023
mov edx, dword [eax - 4]
add edi, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c06e
push edi
push edx
call fcn.0041eebc
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.0041ee79
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004273ec
call fcn.00407400
call fcn.00401360
call fcn.004273ec
call fcn.004273ec
call fcn.004273ec
call fcn.004273ec
call fcn.004273ec
int3