Function at 0x10008d20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10079dba
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x100a6204]
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 esi, ecx
mov dword [ebp - 0x448], esi
mov dword [esi + 0x20], 1
mov edi, 1
mov dword [esi + 0x24], 0
mov ecx, edi
mov edx, dword [esi + 0x28]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x10008d8d
push 0x104
lea ecx, [esi + 0x28]
call fcn.1000f2b0
mov edx, dword [esi + 0x28]
cmp dword [edx - 8], 0x104
jl 0x10009530
mov dword [edx - 0xc], 0x104
xor ecx, ecx
mov eax, dword [esi + 0x28]
push 0x104
push edx
mov word [eax + 0x208], cx
call fcn.10033870
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x10008dc3
xor ecx, ecx
jmp 0x10008dd9
push dword [eax - 8]
push eax
call fcn.1005908f
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x10009530
mov eax, dword [esi + 0x28]
cmp ecx, dword [eax - 8]
jg 0x10009530
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi + 0x28]
mov word [eax + ecx*2], dx
mov ecx, dword [esi + 0x2c]
mov eax, dword [ecx - 8]
sub edi, dword [ecx - 4]
sub eax, 0x104
or eax, edi
jge 0x10008e13
push 0x104
lea ecx, [esi + 0x2c]
call fcn.1000f2b0
mov ecx, dword [esi + 0x2c]
cmp dword [ecx - 8], 0x104
jl 0x1000953a
mov dword [ecx - 0xc], 0x104
xor edx, edx
mov eax, dword [esi + 0x2c]
push 0x104
push ecx
mov word [eax + 0x208], dx
call fcn.100344b0
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x10008e49
xor ecx, ecx
jmp 0x10008e5f
push dword [eax - 8]
push eax
call fcn.1005908f
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x10009530
mov eax, dword [esi + 0x2c]
cmp ecx, dword [eax - 8]
jg 0x10009530
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi + 0x2c]
push 0x208
push edx
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x420]
push eax
call fcn.10051fb0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push dword [0x100a79b4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.10008280
mov ecx, eax
test ecx, ecx
je 0x10009544
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.100074e0
test al, al
jne 0x10008f09
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008ee7
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x43c]
call fcn.1000f980
mov dword [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.10007c30
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 0x10008f48
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.100081e0
push 0
lea ecx, [ebp - 0x438]
push ecx
mov ecx, eax
call fcn.10040880
mov dword [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x10008f6c
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x454]
call fcn.10003ca0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x438]
call fcn.100053f0
call fcn.10008280
mov ecx, eax
test ecx, ecx
je 0x1000954e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x44c], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x440]
push eax
call fcn.10027e50
add esp, 4
mov edi, eax
mov byte [ebp - 4], 8
lea eax, [ebp - 0x458]
push eax
call fcn.100080a0
mov ecx, eax
call fcn.100137a0
mov ebx, eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x43c]
push eax
call fcn.100080a0
mov ecx, eax
call fcn.10013740
mov esi, eax
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x444]
push eax
call fcn.100080a0
mov ecx, eax
call fcn.10013800
mov byte [ebp - 4], 0xb
push dword [edi]
mov edi, dword [ebp - 0x448]
push dword [edi + 0x14]
push dword [edi + 0x2c]
push dword [edi + 0x28]
push dword [edi + 0x30]
push dword [ebx]
push dword [esi]
push dword [eax]
lea eax, [ebp - 0x44c]
push dword [ebp - 0x454]
push eax
call fcn.10007b40
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 0x10009059
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 - 0x43c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000907a
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 - 0x458]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000909b
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 - 0x440]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100090bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, edi
call fcn.10009a70
test eax, eax
je 0x100090d9
push str.use_local_data
call fcn.10007880
add esp, 4
jmp 0x100094d1
call fcn.10008280
mov ecx, eax
test ecx, ecx
je 0x10009558
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 0x100842ac
push 0
push 0
push 0
push eax
push dword [ebp - 0x44c]
call fcn.10008420
mov esi, dword [ebp - 0x43c]
cmp dword [esi - 0xc], 0
jne 0x100091c6
push 0x100826f8
lea ecx, [ebp - 0x448]
call fcn.10003ca0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x444]
push str.svc_getcfg_fail
call fcn.10003ca0
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x448]
push 0
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.10008140
mov ecx, eax
call fcn.10022460
mov byte [ebp - 4], 0x12
mov eax, ebx
mov edx, dword [ebp - 0x444]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100091a5
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 0x100091c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi - 4], 1
jle 0x100091e0
push dword [esi - 0xc]
lea ecx, [ebp - 0x43c]
call fcn.10007a30
mov esi, dword [ebp - 0x43c]
push esi
lea eax, [ebp - 0x450]
mov ecx, edi
push eax
call fcn.1000d100
mov byte [ebp - 4], 0x16
mov eax, dword [edi + 0x14]
cmp dword [eax - 0xc], 0
je 0x10009355
test eax, eax
je 0x10009562
mov ecx, dword [ebp - 0x450]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x10009236
test dx, dx
je 0x10009232
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x10009236
add ecx, 4
add eax, 4
test dx, dx
jne 0x10009210
xor eax, eax
jmp 0x1000923b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10009355
push str.hash_no_chang
call fcn.10007880
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10051fb0
add esp, 0x10
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x100a79b4]
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], 0x17
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10009341
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10027d00
add esp, 8
test eax, eax
je 0x10009341
cmp dword [ebp - 0x424], 0x10
lea eax, [ebp - 0x438]
mov ecx, edi
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.1000a730
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [ebp - 0x440]
call fcn.10029940
mov byte [ebp - 4], 0x18
mov ecx, edi
call fcn.1000f7a0
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x440]
call fcn.10029970
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x438]
call fcn.10005370
jmp 0x10009495
push str.ser_data
call fcn.10007880
add esp, 4
cmp dword [esi - 4], 1
jle 0x1000937c
push dword [esi - 0xc]
lea ecx, [ebp - 0x43c]
call fcn.10007a30
mov esi, dword [ebp - 0x43c]
push esi
mov ecx, edi
call fcn.1000a730
test eax, eax
je 0x10009495
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10051fb0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x100a79b4]
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 - 0x440]
call fcn.10029940
mov byte [ebp - 4], 0x19
cmp dword [esi - 4], 1
jle 0x1000940a
push dword [esi - 0xc]
lea ecx, [ebp - 0x43c]
call fcn.10007a30
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
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10009440
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x438]
call fcn.10011690
mov byte [ebp - 4], 0x1a
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.100292b0
add esp, 8
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x438]
call fcn.10005370
mov ecx, edi
call fcn.1000f7a0
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x440]
call fcn.10029970
mov byte [ebp - 4], 0x11
mov eax, ebx
mov edx, dword [ebp - 0x450]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100094b6
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 0x100094d1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x44c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100094f2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x454]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10009514
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.10049342
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.100074c0
push 0x80070057
call fcn.100074c0
push 0x80004005
call fcn.100074c0
push 0x80004005
call fcn.100074c0
push 0x80004005
call fcn.100074c0
push 0x80004005
call fcn.100074c0
int3