Function at 0x10009610
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100805f0
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x100ae254]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x440], ebx
push str.CAppConfig::Init
call fcn.10007df0
mov dword [ebx + 0x20], 1
mov edi, 1
mov dword [ebx + 0x24], 0
mov ecx, edi
mov edx, dword [ebx + 0x28]
add esp, 4
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x1000968a
push 0x104
lea ecx, [ebx + 0x28]
call fcn.1000f930
mov edx, dword [ebx + 0x28]
cmp dword [edx - 8], 0x104
jl 0x10009eae
mov dword [edx - 0xc], 0x104
xor ecx, ecx
mov eax, dword [ebx + 0x28]
push 0x104
push edx
mov word [eax + 0x208], cx
call fcn.10036790
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x100096c0
xor ecx, ecx
jmp 0x100096d6
push dword [eax - 8]
push eax
call fcn.1005faef
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x10009eae
mov eax, dword [ebx + 0x28]
cmp ecx, dword [eax - 8]
jg 0x10009eae
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebx + 0x28]
mov word [eax + ecx*2], dx
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ecx - 8]
sub edi, dword [ecx - 4]
sub eax, 0x104
or eax, edi
jge 0x10009710
push 0x104
lea ecx, [ebx + 0x2c]
call fcn.1000f930
mov ecx, dword [ebx + 0x2c]
cmp dword [ecx - 8], 0x104
jl 0x10009eb8
mov dword [ecx - 0xc], 0x104
xor edx, edx
mov eax, dword [ebx + 0x2c]
push 0x104
push ecx
mov word [eax + 0x208], dx
call fcn.100373d0
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x10009746
xor ecx, ecx
jmp 0x1000975c
push dword [eax - 8]
push eax
call fcn.1005faef
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x10009eae
mov eax, dword [ebx + 0x2c]
cmp ecx, dword [eax - 8]
jg 0x10009eae
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebx + 0x2c]
push 0x208
push edx
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x420]
push eax
call fcn.10058a20
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push dword [0x100af9e0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.10008b70
mov ecx, eax
test ecx, ecx
je 0x10009ec2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x43c], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x43c]
call fcn.10007a50
test al, al
jne 0x10009806
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100097e4
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x43c]
call fcn.10010000
mov dword [ebp - 4], 1
lea eax, [ebx + 0x30]
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.10008520
add esp, 8
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x43c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10009845
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10008ad0
push 0
lea ecx, [ebp - 0x438]
push ecx
mov ecx, eax
call fcn.10046d70
mov dword [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x10009869
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x458]
call fcn.10003d20
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x438]
call fcn.100058f0
mov ecx, ebx
call fcn.1000a420
call fcn.10008b70
mov ecx, eax
test ecx, ecx
je 0x10009ecc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x450], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x44c]
push eax
call fcn.10028dc0
add esp, 4
mov edi, eax
mov byte [ebp - 4], 8
lea eax, [ebp - 0x43c]
push eax
call fcn.10008990
mov ecx, eax
call fcn.10013f00
mov ebx, eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x444]
push eax
call fcn.10008990
mov ecx, eax
call fcn.10013ea0
mov esi, eax
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x448]
push eax
call fcn.10008990
mov ecx, eax
call fcn.10013f60
mov byte [ebp - 4], 0xb
push dword [edi]
mov ecx, dword [ebp - 0x440]
push dword [ecx + 0x14]
push dword [ecx + 0x2c]
push dword [ecx + 0x28]
push dword [ecx + 0x30]
push dword [ebx]
push dword [esi]
push dword [eax]
lea eax, [ebp - 0x450]
push dword [ebp - 0x458]
push eax
call fcn.10008430
add esp, 0x28
mov byte [ebp - 4], 0xa
or ebx, 0xffffffff
mov edx, dword [ebp - 0x448]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000995d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov eax, ebx
mov edx, dword [ebp - 0x444]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000997e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov eax, ebx
mov edx, dword [ebp - 0x43c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000999f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, ebx
mov edx, dword [ebp - 0x44c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100099c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x450]
push edi
push str.strUrl_s
call fcn.10007df0
add esp, 8
call fcn.10008b70
mov ecx, eax
test ecx, ecx
je 0x10009ed6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x43c]
push 0x1388
push 0x1388
push 0x1388
push 0x1388
push str.HTTP_1.1
push 0x1008a0f4
push 0
push 0
push 0
push eax
push edi
call fcn.10008d10
mov esi, dword [ebp - 0x43c]
cmp dword [esi - 0xc], 0
jne 0x10009b2a
call fcn.10008b70
mov ecx, eax
test ecx, ecx
je 0x10009ee0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x448], eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x448]
push 0x10089d40
call fcn.10007a50
test al, al
jne 0x10009a7d
push 0
push 0x10089d40
lea ecx, [ebp - 0x448]
call fcn.10010000
mov byte [ebp - 4], 0x13
call fcn.10008b70
mov ecx, eax
test ecx, ecx
je 0x10009eea
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x444], eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x444]
push str.svc_getcfg_fail
call fcn.10007a50
test al, al
jne 0x10009ac8
push 0xf
push str.svc_getcfg_fail
lea ecx, [ebp - 0x444]
call fcn.10010000
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x448]
push 0
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.10008a30
mov ecx, eax
call fcn.10023550
mov byte [ebp - 4], 0x13
mov eax, ebx
mov edx, dword [ebp - 0x444]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10009b09
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x11
mov eax, ebx
mov edx, dword [ebp - 0x448]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10009b2a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi - 4], 1
jle 0x10009b44
push dword [esi - 0xc]
lea ecx, [ebp - 0x43c]
call fcn.10008320
mov esi, dword [ebp - 0x43c]
mov ecx, dword [ebp - 0x440]
lea eax, [ebp - 0x454]
push esi
push eax
call fcn.1000de40
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0x440]
mov eax, dword [eax + 0x14]
cmp dword [eax - 0xc], 0
je 0x10009ccd
test eax, eax
je 0x10009ef4
mov ecx, dword [ebp - 0x454]
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x10009ba6
test dx, dx
je 0x10009ba2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x10009ba6
add ecx, 4
add eax, 4
test dx, dx
jne 0x10009b80
xor eax, eax
jmp 0x10009bab
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10009ccd
push str.hash_no_chang
call fcn.10007df0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10058a20
add esp, 0x10
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x100af9e0]
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.svc.dat
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], 0
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10009cb9
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10028c70
add esp, 8
test eax, eax
je 0x10009cb9
cmp dword [ebp - 0x424], 0x10
lea eax, [ebp - 0x438]
mov ecx, dword [ebp - 0x440]
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.1000b0d0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [ebp - 0x44c]
call fcn.1002a5b0
mov byte [ebp - 4], 0x1a
mov ecx, dword [ebp - 0x440]
call fcn.1000fe20
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x44c]
call fcn.1002a5e0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x438]
call fcn.10005870
jmp 0x10009e19
push str.ser_data
call fcn.10007df0
add esp, 4
cmp dword [esi - 4], 1
jle 0x10009cf4
push dword [esi - 0xc]
lea ecx, [ebp - 0x43c]
call fcn.10008320
mov esi, dword [ebp - 0x43c]
mov ecx, dword [ebp - 0x440]
push esi
call fcn.1000b0d0
test eax, eax
je 0x10009e19
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10058a20
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x100af9e0]
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.svc.dat
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [ebp - 0x44c]
call fcn.1002a5b0
mov byte [ebp - 4], 0x1b
cmp dword [esi - 4], 1
jle 0x10009d86
push dword [esi - 0xc]
lea ecx, [ebp - 0x43c]
call fcn.10008320
mov esi, dword [ebp - 0x43c]
mov ecx, esi
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], 0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10009dc0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x438]
call fcn.10011d00
mov byte [ebp - 4], 0x1c
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.1002a220
add esp, 8
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x438]
call fcn.10005870
mov ecx, dword [ebp - 0x440]
call fcn.1000fe20
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x44c]
call fcn.1002a5e0
mov byte [ebp - 4], 0x11
mov eax, ebx
mov edx, dword [ebp - 0x454]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10009e3a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10009e55
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10009e70
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x458]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10009e92
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10051ab7
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10007a30
push 0x80070057
call fcn.10007a30
push 0x80004005
call fcn.10007a30
push 0x80004005
call fcn.10007a30
push 0x80004005
call fcn.10007a30
push 0x80004005
call fcn.10007a30
push 0x80004005
call fcn.10007a30
push 0x80004005
call fcn.10007a30
int3