Function at 0x40d690
Capabilities:
Check if file exists
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 0x43f284
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4b0
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 byte [ebp - 0x4a1], dl
mov esi, ecx
mov dword [ebp - 0x4a8], 0
lea edx, [ecx + 2]
xorps xmm0, xmm0
mov dword [ebp - 0x430], 0
movups xmmword [ebp - 0x440], xmm0
mov dword [ebp - 0x42c], 0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d704
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x440]
call fcn.00407540
push ecx
lea ecx, [ebp - 0x458]
mov dword [ebp - 4], 0
call fcn.00413e90
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x470]
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x460], 0
push 0x448ee8
movups xmmword [ebp - 0x470], xmm0
mov dword [ebp - 0x45c], 0
call fcn.00407540
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x488]
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x478], 0
push 0x448ee8
movups xmmword [ebp - 0x488], xmm0
mov dword [ebp - 0x474], 0
call fcn.00407540
mov byte [ebp - 4], 3
lea edx, [ebp - 0x440]
cmp dword [ebp - 0x42c], 7
mov edi, dword [ebp - 0x430]
cmova edx, dword [ebp - 0x440]
test edi, edi
je 0x40d7e8
or ecx, 0xffffffff
lea eax, [edi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea esi, [edx + ecx*2]
je 0x40d7e2
cmp esi, edx
je 0x40d7e8
sub esi, 2
cmp word [esi], 0x5c
jne 0x40d7d5
sub esi, edx
sar esi, 1
jmp 0x40d7eb
or esi, 0xffffffff
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00420d70
inc esi
add esp, 0xc
cmp edi, esi
jb 0x40e296
cmp dword [ebp - 0x42c], 7
lea eax, [ebp - 0x440]
mov dword [ebp - 0x430], esi
cmova eax, dword [ebp - 0x440]
xor ecx, ecx
mov word [eax + esi*2], cx
mov esi, bind
mov ecx, dword [ebp - 0x430]
mov eax, esi
sub eax, ecx
cmp eax, 5
jb 0x40e2bc
cmp dword [ebp - 0x42c], 7
lea eax, [ebp - 0x440]
push 5
cmova eax, dword [ebp - 0x440]
push str.patch
push ecx
push eax
push ecx
push dword [ebp - 0x4a8]
lea ecx, [ebp - 0x4c0]
call fcn.004089f0
mov ecx, dword [ebp - 0x474]
cmp ecx, 7
jbe 0x40d8b1
mov edx, dword [ebp - 0x488]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d8a7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e316
push ecx
push edx
call fcn.0041eebc
add esp, 8
movups xmm0, xmmword [ebp - 0x4c0]
push 0x103
lea eax, [ebp - 0x220]
movups xmmword [ebp - 0x488], xmm0
push eax
movq xmm0, qword [ebp - 0x4b0]
push 0
movq qword [ebp - 0x478], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x220]
push 0x5c
push eax
call fcn.004206fb
mov edx, eax
add esp, 8
mov ecx, edx
add edx, 2
test ecx, ecx
jne 0x40d905
lea edx, [ebp - 0x220]
mov ecx, edx
lea eax, [ebp - 0x220]
sub ecx, eax
mov eax, 0x103
sar ecx, 1
push 0x44901c
sub eax, ecx
push eax
push edx
call fcn.0042743d
add esp, 0xc
lea eax, [ebp - 0x220]
cmp byte [ebp - 0x4a1], 0
mov ecx, 0x44948c
push eax
mov eax, 0x449488
cmove eax, ecx
push eax
push str.start
push str.xbaibrowser
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 0x430]
mov eax, esi
sub eax, ecx
cmp eax, 9
jb 0x40e2bc
cmp dword [ebp - 0x42c], 7
lea eax, [ebp - 0x440]
push 9
cmova eax, dword [ebp - 0x440]
push str.local.cfg
push ecx
push eax
push ecx
push dword [ebp - 0x4a8]
lea ecx, [ebp - 0x4c0]
call fcn.004089f0
mov ecx, dword [ebp - 0x45c]
cmp ecx, 7
jbe 0x40d9d5
mov edx, dword [ebp - 0x470]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d9cb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e316
push ecx
push edx
call fcn.0041eebc
add esp, 8
movups xmm0, xmmword [ebp - 0x4c0]
push 0xf
push str.xbaiservice.exe
movups xmmword [ebp - 0x470], xmm0
lea ecx, [ebp - 0x440]
movq xmm0, qword [ebp - 0x4b0]
movq qword [ebp - 0x460], xmm0
call fcn.00407270
call fcn.00413e00
test al, al
jne 0x40da45
cmp dword [ebp - 0x42c], 7
lea ecx, [ebp - 0x440]
cmova ecx, dword [ebp - 0x440]
xor edx, edx
call fcn.00411c20
test al, al
jne 0x40da45
call fcn.00411b60
test al, al
jne 0x40dab4
call fcn.00411a00
test eax, eax
jne 0x40e29b
jmp 0x40dab4
cmp dword [ebp - 0x42c], 7
lea ecx, [ebp - 0x440]
lea eax, [ebp - 0x458]
cmova ecx, dword [ebp - 0x440]
cmp dword [ebp - 0x444], 7
cmova eax, dword [ebp - 0x458]
push eax
push ecx
call fcn.0042751d
add esp, 8
test eax, eax
je 0x40dae7
lea eax, [ebp - 0x220]
push eax
push 0
push str.keepxbsvc
push str.xbaibrowser
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
je 0x40dae7
call fcn.00411b60
test al, al
jne 0x40daaf
call fcn.00411a00
test eax, eax
jne 0x40e2a9
call fcn.00413d70
cmp dword [ebp - 0x42c], 7
lea ecx, [ebp - 0x440]
cmova ecx, dword [ebp - 0x440]
sub esp, 8
call fcn.00413a10
add esp, 8
test al, al
je 0x40dae7
call fcn.00413c10
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00413e00
cmp byte [ebp - 0x4a1], 0
je 0x40e140
test al, al
jne 0x40e127
cmp dword [ebp - 0x42c], 7
lea ecx, [ebp - 0x440]
push 0
cmova ecx, dword [ebp - 0x440]
xor edx, edx
push 0
call fcn.00411720
test eax, eax
je 0x40dca3
cmp dword [ebp - 0x42c], 7
lea ecx, [ebp - 0x440]
cmova ecx, dword [ebp - 0x440]
xor edx, edx
call fcn.00411c20
test al, al
je 0x40dca3
mov ecx, dword [ebp - 0x474]
cmp ecx, 7
jbe 0x40db8b
mov edx, dword [ebp - 0x488]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40db81
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e316
push ecx
push edx
call fcn.0041eebc
add esp, 8
mov ecx, dword [ebp - 0x45c]
cmp ecx, 7
jbe 0x40dbcb
mov edx, dword [ebp - 0x470]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40dbc1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e316
push ecx
push edx
call fcn.0041eebc
add esp, 8
mov ecx, dword [ebp - 0x444]
xor eax, eax
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x45c], 7
mov word [ebp - 0x470], ax
cmp ecx, 7
jbe 0x40dc28
mov edx, dword [ebp - 0x458]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40dc1e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e316
push ecx
push edx
call fcn.0041eebc
add esp, 8
mov ecx, dword [ebp - 0x42c]
xor eax, eax
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 7
mov word [ebp - 0x458], ax
cmp ecx, 7
jbe 0x40dc85
mov edx, dword [ebp - 0x440]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40dc7b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e316
push ecx
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
mov edx, 0x25
lea ecx, [ebp - 0x4c0]
call fcn.0040f1c0
mov ecx, dword [ebp - 0x444]
cmp ecx, 7
jbe 0x40dcf3
mov edx, dword [ebp - 0x458]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40dce9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e2b7
push ecx
push edx
call fcn.0041eebc
add esp, 8
movups xmm0, xmmword [ebp - 0x4c0]
push 0
push 0x448e8c
movups xmmword [ebp - 0x458], xmm0
lea ecx, [ebp - 0x458]
movq xmm0, qword [ebp - 0x4b0]
movq qword [ebp - 0x448], xmm0
call fcn.0040eb00
cmp eax, 0xffffffff
je 0x40dd54
cmp dword [ebp - 0x448], eax
jb 0x40e296
cmp dword [ebp - 0x444], 7
lea ecx, [ebp - 0x458]
mov dword [ebp - 0x448], eax
cmova ecx, dword [ebp - 0x458]
xor edx, edx
mov word [ecx + eax*2], dx
push 0x11
push str._snquxbaibrowser
lea ecx, [ebp - 0x458]
call fcn.00407270
mov edi, dword [ebp - 0x42c]
lea edx, [ebp - 0x440]
mov esi, dword [ebp - 0x430]
cmp edi, 7
cmova edx, dword [ebp - 0x440]
test esi, esi
je 0x40dde6
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea ecx, [edx + ecx*2]
je 0x40ddad
nop dword [eax + eax]
cmp ecx, edx
je 0x40dde6
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x40dda0
sub ecx, edx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x40dde6
cmp esi, ecx
jb 0x40e296
cmp edi, 7
mov dword [ebp - 0x430], ecx
lea eax, [ebp - 0x440]
cmova eax, dword [ebp - 0x440]
xor edx, edx
mov word [eax + ecx*2], dx
mov edi, dword [ebp - 0x42c]
mov esi, dword [ebp - 0x430]
cmp edi, 7
lea edx, [ebp - 0x440]
cmova edx, dword [ebp - 0x440]
test esi, esi
je 0x40de4c
lea eax, [esi - 1]
mov ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea ecx, [edx + ecx*2]
je 0x40de1f
cmp ecx, edx
je 0x40de4c
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x40de12
sub ecx, edx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x40de4c
cmp esi, ecx
jb 0x40e296
cmp edi, 7
mov dword [ebp - 0x430], ecx
lea eax, [ebp - 0x440]
cmova eax, dword [ebp - 0x440]
xor edx, edx
mov word [eax + ecx*2], dx
mov ecx, dword [ebp - 0x448]
mov eax, bind
sub eax, ecx
cmp eax, 0xe
jb 0x40e2bc
cmp dword [ebp - 0x444], 7
lea eax, [ebp - 0x458]
push 0xe
cmova eax, dword [ebp - 0x458]
push 0x449510
push ecx
push eax
push ecx
push dword [ebp - 0x4a8]
lea ecx, [ebp - 0x4c0]
call fcn.004089f0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x4c0]
cmp dword [ebp - 0x4ac], 7
mov dword [ebp - 0x4a8], 0x1f
cmova eax, dword [ebp - 0x4c0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x40def7
cmp dword [ebp - 0x444], 7
lea edx, [ebp - 0x458]
lea ecx, [ebp - 0x440]
cmova edx, dword [ebp - 0x458]
cmp dword [ebp - 0x42c], 7
cmova ecx, dword [ebp - 0x440]
call fcn.0040fe70
mov byte [ebp - 0x4a1], 1
test eax, eax
je 0x40defe
mov byte [ebp - 0x4a1], 0
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x4ac]
cmp ecx, 7
jbe 0x40df45
mov edx, dword [ebp - 0x4c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40df3b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e2c1
push ecx
push edx
call fcn.0041eebc
add esp, 8
cmp byte [ebp - 0x4a1], 0
jne 0x40e2c6
push 0x208
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.00420d70
add esp, 0xc
lea eax, [ebp - 0x470]
cmp dword [ebp - 0x45c], 7
cmova eax, dword [ebp - 0x470]
push eax
push 0x103
lea eax, [ebp - 0x428]
push eax
push 0x448ee8
push str.quicklink
push 0x449434
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x428]
push str.disabled
push eax
call fcn.0042751d
add esp, 8
test eax, eax
je 0x40e127
xor edx, edx
lea ecx, [ebp - 0x4c0]
call fcn.0040f1c0
push 1
push 0x448e8c
lea ecx, [ebp - 0x4c0]
mov byte [ebp - 4], 6
call fcn.00407270
mov dword [ebp - 0x490], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x4a0], xmm0
mov dword [ebp - 0x48c], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x4a0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x490], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x4ac]
cmp ecx, 7
jbe 0x40e069
mov edx, dword [ebp - 0x4c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40e05f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e30c
push ecx
push edx
call fcn.0041eebc
add esp, 8
xor eax, eax
mov dword [ebp - 0x4b0], 0
mov word [ebp - 0x4c0], ax
lea eax, [ebp - 0x428]
push 0x103
push eax
push 0
mov dword [ebp - 0x4ac], 7
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 7
push 0x44956c
lea ecx, [ebp - 0x4a0]
call fcn.00407270
push 4
push str..lnk
lea ecx, [ebp - 0x4a0]
call fcn.00407270
cmp dword [ebp - 0x48c], 7
lea ecx, [ebp - 0x4a0]
lea edx, [ebp - 0x428]
cmova ecx, dword [ebp - 0x4a0]
sub esp, 0x14
call fcn.00413600
mov byte [ebp - 4], 3
add esp, 0x14
mov ecx, dword [ebp - 0x48c]
cmp ecx, 7
jbe 0x40e127
mov edx, dword [ebp - 0x4a0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40e11d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e311
push ecx
push edx
call fcn.0041eebc
add esp, 8
cmp dword [ebp - 0x474], 7
lea ecx, [ebp - 0x488]
cmova ecx, dword [ebp - 0x488]
call fcn.0040d540
cmp dword [ebp - 0x474], 7
lea ecx, [ebp - 0x488]
cmova ecx, dword [ebp - 0x488]
call fcn.0040d1d0
mov ecx, dword [ebp - 0x474]
cmp ecx, 7
jbe 0x40e199
mov edx, dword [ebp - 0x488]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40e18f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e316
push ecx
push edx
call fcn.0041eebc
add esp, 8
mov ecx, dword [ebp - 0x45c]
cmp ecx, 7
jbe 0x40e1d9
mov edx, dword [ebp - 0x470]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40e1cf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e316
push ecx
push edx
call fcn.0041eebc
add esp, 8
mov ecx, dword [ebp - 0x444]
xor eax, eax
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x45c], 7
mov word [ebp - 0x470], ax
cmp ecx, 7
jbe 0x40e236
mov edx, dword [ebp - 0x458]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40e22c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e316
push ecx
push edx
call fcn.0041eebc
add esp, 8
mov ecx, dword [ebp - 0x42c]
xor eax, eax
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 7
mov word [ebp - 0x458], ax
cmp ecx, 7
jbe 0x40dc85
mov edx, dword [ebp - 0x440]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40dc7b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e316
jmp 0x40dc7b
call fcn.00407400
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call fcn.00427959
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call fcn.00427959
call fcn.004273ec
call fcn.00401360
call fcn.004273ec
push 0x449510
lea edx, [ebp - 0x458]
lea ecx, [ebp - 0x4c0]
call fcn.00408980
add esp, 4
push 0
push 0
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00406c40
mov edx, str.__poweron
mov ecx, eax
call fcn.00411720
lea ecx, [ebp - 0x4c0]
call fcn.00406c50
push 0
call fcn.00427959
call fcn.004273ec
call fcn.004273ec
call fcn.004273ec
int3