Function at 0x408070
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 0x43ec98
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x10d8
call fcn.0043c2d0
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 esi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x1098], 0
xor eax, eax
mov dword [ebp - 0x1094], 7
movups xmmword [ebp - 0x10a8], xmm0
mov word [ebp - 0x10a8], ax
push 0x1000
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1018]
push eax
call fcn.00420d70
add esp, 0xc
lea ecx, [ebp - 0x1030]
push esi
call fcn.00407f70
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1020], 0
jne 0x4083ce
lea ecx, [ebp - 0x10e8]
call fcn.0040f300
push 0xb
push 0x44901c
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00407270
mov dword [ebp - 0x1038], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x1048], xmm0
mov dword [ebp - 0x1034], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x1048], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1038], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10d4]
cmp ecx, 7
jbe 0x4081bc
mov edx, dword [ebp - 0x10e8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4081b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4088c4
push ecx
push edx
call fcn.0041eebc
add esp, 8
xor eax, eax
mov dword [ebp - 0x10d8], 0
cmp dword [ebp - 0x1034], 7
mov word [ebp - 0x10e8], ax
lea eax, [ebp - 0x1048]
cmova eax, dword [ebp - 0x1048]
push eax
push 0x800
lea eax, [ebp - 0x1018]
mov dword [ebp - 0x10d4], 7
push eax
push 0x448ee8
push str.cur_ver
push str.xbaibrowser
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x1018], 0
je 0x4083fc
xorps xmm0, xmm0
mov dword [ebp - 0x10c0], 0
lea ecx, [ebp - 0x1018]
mov dword [ebp - 0x10bc], 0
movups xmmword [ebp - 0x10d0], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408244
sub ecx, edx
lea eax, [ebp - 0x1018]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10d0]
call fcn.00407540
movups xmm0, xmmword [ebp - 0x10d0]
movups xmmword [ebp - 0x10a8], xmm0
movq xmm0, qword [ebp - 0x10c0]
movq qword [ebp - 0x1098], xmm0
mov esi, dword [ebp - 0x1098]
test esi, esi
je 0x4083fc
lea ecx, [ebp - 0x10d0]
call fcn.0040f300
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10a8]
cmp dword [ebp - 0x1094], 7
push esi
cmova ecx, dword [ebp - 0x10a8]
push ecx
mov ecx, eax
call fcn.00407270
xor ecx, ecx
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x101c]
movq qword [ebp - 0x10b8], xmm1
movups xmmword [ebp - 0x10e0], xmm0
cmp ecx, 7
jbe 0x408337
mov edx, dword [ebp - 0x1030]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40831e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4088c9
push ecx
push edx
call fcn.0041eebc
movups xmm0, xmmword [ebp - 0x10e0]
add esp, 8
movq xmm1, qword [ebp - 0x10b8]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10bc]
movq qword [ebp - 0x1020], xmm1
movups xmmword [ebp - 0x1030], xmm0
cmp ecx, 7
jbe 0x40838a
mov edx, dword [ebp - 0x10d0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408380
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4088c9
push ecx
push edx
call fcn.0041eebc
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1034]
cmp ecx, 7
jbe 0x4083ce
mov edx, dword [ebp - 0x1048]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4083c4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4088ce
push ecx
push edx
call fcn.0041eebc
add esp, 8
cmp dword [ebp - 0x101c], 7
lea eax, [ebp - 0x1030]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmova eax, dword [ebp - 0x1030]
push eax
call edi
cmp eax, 1
je 0x408448
mov byte [ebp - 0x10a9], 0
jmp 0x408807
mov ecx, dword [ebp - 0x1034]
cmp ecx, 7
jbe 0x4083f0
mov edx, dword [ebp - 0x1048]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408432
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4088ce
push ecx
push edx
call fcn.0041eebc
add esp, 8
mov byte [ebp - 0x10a9], 0
jmp 0x408807
mov ecx, dword [ebp - 0x1020]
mov esi, bind
mov eax, esi
sub eax, ecx
cmp eax, 1
jb 0x4088d3
cmp dword [ebp - 0x101c], 7
lea eax, [ebp - 0x1030]
push 1
cmova eax, dword [ebp - 0x1030]
push 0x448e8c
push ecx
push eax
push ecx
push dword [ebp - 0x10b4]
lea ecx, [ebp - 0x1048]
call fcn.004089f0
push 9
push str.local.cfg
lea ecx, [ebp - 0x1048]
mov byte [ebp - 4], 6
call fcn.00407270
mov dword [ebp - 0x1050], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x1060], xmm0
mov dword [ebp - 0x104c], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x1060], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1050], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x1034]
cmp ecx, 7
jbe 0x408531
mov edx, dword [ebp - 0x1048]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408527
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4088d8
push ecx
push edx
call fcn.0041eebc
add esp, 8
xor eax, eax
mov dword [ebp - 0x1038], 0
cmp dword [ebp - 0x104c], 7
mov word [ebp - 0x1048], ax
lea eax, [ebp - 0x1060]
cmova eax, dword [ebp - 0x1060]
push eax
mov dword [ebp - 0x1034], 7
call edi
cmp eax, 1
jne 0x4087a3
push 0x1000
lea eax, [ebp - 0x1018]
push 0
push eax
call fcn.00420d70
add esp, 0xc
lea eax, [ebp - 0x1060]
cmp dword [ebp - 0x104c], 7
cmova eax, dword [ebp - 0x1060]
push eax
push 0x800
lea eax, [ebp - 0x1018]
push eax
push 0x448ee8
push str.update_installer
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x1018], 0
je 0x4087a3
xorps xmm0, xmm0
mov dword [ebp - 0x1068], 0
lea ecx, [ebp - 0x1018]
mov dword [ebp - 0x1064], 0
movups xmmword [ebp - 0x1078], xmm0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4085f0
sub ecx, edx
lea eax, [ebp - 0x1018]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1078]
call fcn.00407540
mov byte [ebp - 4], 9
cmp dword [ebp - 0x1068], 0
je 0x40873d
cmp dword [ebp - 0x1064], 7
lea eax, [ebp - 0x1078]
cmova eax, dword [ebp - 0x1078]
push eax
call edi
cmp eax, 1
jne 0x40873d
mov ecx, dword [ebp - 0x1020]
sub esi, ecx
cmp esi, 0xd
jb 0x4088dd
cmp dword [ebp - 0x101c], 7
lea eax, [ebp - 0x1030]
push 0xd
cmova eax, dword [ebp - 0x1030]
push str.xbupdate.exe
push ecx
push eax
push ecx
push dword [ebp - 0x10b4]
lea ecx, [ebp - 0x1090]
call fcn.004089f0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x1090]
cmp dword [ebp - 0x107c], 7
cmova eax, dword [ebp - 0x1090]
push eax
call edi
cmp eax, 1
jne 0x4086d7
cmp dword [ebp - 0x107c], 7
lea ecx, [ebp - 0x1090]
push eax
cmova ecx, dword [ebp - 0x1090]
mov edx, str.__local
push eax
call fcn.00411720
test eax, eax
je 0x4086d7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x10a9], 1
jmp 0x4086de
mov byte [ebp - 0x10a9], 0
mov ecx, dword [ebp - 0x107c]
cmp ecx, 7
jbe 0x40871e
mov edx, dword [ebp - 0x1090]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408714
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4088e2
push ecx
push edx
call fcn.0041eebc
add esp, 8
xor eax, eax
mov dword [ebp - 0x1080], 0
mov dword [ebp - 0x107c], 7
mov word [ebp - 0x1090], ax
jmp 0x408744
mov byte [ebp - 0x10a9], 0
mov ecx, dword [ebp - 0x1064]
cmp ecx, 7
jbe 0x408784
mov edx, dword [ebp - 0x1078]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40877a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4088e2
push ecx
push edx
call fcn.0041eebc
add esp, 8
xor eax, eax
mov dword [ebp - 0x1068], 0
mov dword [ebp - 0x1064], 7
mov word [ebp - 0x1078], ax
jmp 0x4087aa
mov byte [ebp - 0x10a9], 0
mov ecx, dword [ebp - 0x104c]
cmp ecx, 7
jbe 0x4087ea
mov edx, dword [ebp - 0x1060]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4087e0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4088e2
push ecx
push edx
call fcn.0041eebc
add esp, 8
xor eax, eax
mov dword [ebp - 0x1050], 0
mov dword [ebp - 0x104c], 7
mov word [ebp - 0x1060], ax
mov ecx, dword [ebp - 0x101c]
cmp ecx, 7
jbe 0x408847
mov edx, dword [ebp - 0x1030]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40883d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4088e2
push ecx
push edx
call fcn.0041eebc
add esp, 8
mov ecx, dword [ebp - 0x1094]
xor eax, eax
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 7
mov word [ebp - 0x1030], ax
cmp ecx, 7
jbe 0x4088a0
mov edx, dword [ebp - 0x10a8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408896
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4088e2
push ecx
push edx
call fcn.0041eebc
add esp, 8
mov al, byte [ebp - 0x10a9]
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.004273ec
call fcn.004273ec
call fcn.00401360
call fcn.004273ec
call fcn.00401360
call fcn.004273ec
int3