Function at 0x10009080
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10080020
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x100ac1c4]
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 - 0x450], ebx
mov dword [ebx + 0x20], 1
mov dword [ebx + 0x24], 0
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x100090cf
xor ecx, ecx
jmp 0x100090e5
push dword [eax - 8]
push eax
call fcn.100576ba
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x10009833
mov eax, dword [ebx + 0x28]
cmp ecx, dword [eax - 8]
jg 0x10009833
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebx + 0x28]
mov word [eax + ecx*2], dx
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x10009108
xor ecx, ecx
jmp 0x1000911e
push dword [eax - 8]
push eax
call fcn.100576ba
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x10009833
mov eax, dword [ebx + 0x2c]
cmp ecx, dword [eax - 8]
jg 0x10009833
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.100503b0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push dword [0x100ad9c4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.100085e0
mov ecx, eax
test ecx, ecx
je 0x1000983d
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.100079e0
test al, al
jne 0x100091c8
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100091a6
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x43c]
call fcn.1000ffb0
mov dword [ebp - 4], 1
lea eax, [ebx + 0x30]
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.10007f90
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 0x10009207
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10008540
push 0
lea ecx, [ebp - 0x438]
push ecx
mov ecx, eax
call fcn.1003d280
mov dword [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x1000922b
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x458]
call fcn.10003cf0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x438]
call fcn.10005880
mov ecx, ebx
call fcn.10009d80
call fcn.100085e0
mov ecx, eax
test ecx, ecx
je 0x10009847
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x44c], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x448]
push eax
call fcn.100281d0
add esp, 4
mov edi, eax
mov byte [ebp - 4], 8
lea eax, [ebp - 0x43c]
push eax
call fcn.10008400
mov ecx, eax
call fcn.10013dd0
mov ebx, eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x440]
push eax
call fcn.10008400
mov ecx, eax
call fcn.10013d70
mov esi, eax
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x444]
push eax
call fcn.10008400
mov ecx, eax
call fcn.10013e30
mov byte [ebp - 4], 0xb
push dword [edi]
mov ecx, dword [ebp - 0x450]
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 - 0x44c]
push dword [ebp - 0x458]
push eax
call fcn.10007e90
add esp, 0x28
mov byte [ebp - 4], 0xa
or ebx, 0xffffffff
mov edx, dword [ebp - 0x444]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000931f
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 - 0x440]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10009340
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 0x10009361
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 - 0x448]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10009382
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.100085e0
mov ecx, eax
test ecx, ecx
je 0x10009851
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]
mov edi, dword [ebp - 0x44c]
push 0x1388
push 0x1388
push 0x1388
push 0x1388
push str.HTTP_1.1
push 0x1008a024
push 0
push 0
push 0
push eax
push edi
call fcn.10008780
mov esi, dword [ebp - 0x43c]
cmp dword [esi - 0xc], 0
jne 0x100094de
call fcn.100085e0
mov ecx, eax
test ecx, ecx
je 0x1000985b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x444], eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x444]
push 0x10089d54
call fcn.100079e0
test al, al
jne 0x10009431
push 0
push 0x10089d54
lea ecx, [ebp - 0x444]
call fcn.1000ffb0
mov byte [ebp - 4], 0x13
call fcn.100085e0
mov ecx, eax
test ecx, ecx
je 0x10009865
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x440], eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x440]
push str.svc_getcfg_fail
call fcn.100079e0
test al, al
jne 0x1000947c
push 0xf
push str.svc_getcfg_fail
lea ecx, [ebp - 0x440]
call fcn.1000ffb0
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x444]
push 0
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.100084a0
mov ecx, eax
call fcn.100227f0
mov byte [ebp - 4], 0x13
mov eax, ebx
mov edx, dword [ebp - 0x440]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100094bd
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 - 0x444]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100094de
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi - 4], 1
jle 0x100094f8
push dword [esi - 0xc]
lea ecx, [ebp - 0x43c]
call fcn.10007d80
mov esi, dword [ebp - 0x43c]
mov ebx, dword [ebp - 0x450]
lea eax, [ebp - 0x454]
push esi
push eax
mov ecx, ebx
call fcn.1000d780
mov byte [ebp - 4], 0x18
mov eax, dword [ebx + 0x14]
cmp dword [eax - 0xc], 0
je 0x1000966a
test eax, eax
je 0x1000986f
mov ecx, dword [ebp - 0x454]
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x10009556
test dx, dx
je 0x10009552
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x10009556
add ecx, 4
add eax, 4
test dx, dx
jne 0x10009530
xor eax, eax
jmp 0x1000955b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1000966a
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.100503b0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x100ad9c4]
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 0x10009656
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10028080
add esp, 8
test eax, eax
je 0x10009656
cmp dword [ebp - 0x424], 0x10
lea eax, [ebp - 0x438]
mov ecx, ebx
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.1000aa20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [ebp - 0x448]
call fcn.10029cc0
mov byte [ebp - 4], 0x1a
mov ecx, ebx
call fcn.1000fdd0
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x448]
call fcn.10029cf0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x438]
call fcn.10005800
jmp 0x1000979b
cmp dword [esi - 4], 1
jle 0x10009684
push dword [esi - 0xc]
lea ecx, [ebp - 0x43c]
call fcn.10007d80
mov esi, dword [ebp - 0x43c]
push esi
mov ecx, ebx
call fcn.1000aa20
test eax, eax
je 0x1000979b
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100503b0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x100ad9c4]
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 - 0x448]
call fcn.10029cc0
mov byte [ebp - 4], 0x1b
cmp dword [esi - 4], 1
jle 0x10009712
push dword [esi - 0xc]
lea ecx, [ebp - 0x43c]
call fcn.10007d80
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]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10009746
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x438]
call fcn.10011cb0
mov byte [ebp - 4], 0x1c
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10029630
add esp, 8
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x438]
call fcn.10005800
mov ecx, ebx
call fcn.1000fdd0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x448]
call fcn.10029cf0
mov byte [ebp - 4], 0x11
or ebx, 0xffffffff
mov edx, dword [ebp - 0x454]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100097bf
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 0x100097da
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 0x100097f5
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 0x10009817
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.10047acb
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.100079c0
push 0x80004005
call fcn.100079c0
push 0x80004005
call fcn.100079c0
push 0x80004005
call fcn.100079c0
push 0x80004005
call fcn.100079c0
push 0x80004005
call fcn.100079c0
push 0x80004005
call fcn.100079c0
int3