Function at 0x100060b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005596c
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x10079214]
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 eax, ecx
mov dword [ebp - 0x440], eax
call fcn.10006ad0
test eax, eax
je 0x10006101
push str.use_local_data
call fcn.10004bd0
add esp, 4
jmp 0x100068e6
call fcn.10005540
mov ecx, eax
test ecx, ecx
je 0x10006902
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x454], esi
mov dword [ebp - 4], 1
mov ebx, 1
mov eax, dword [esi - 8]
mov ecx, ebx
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x10006151
push 0x104
lea ecx, [ebp - 0x454]
call fcn.1000a000
mov esi, dword [ebp - 0x454]
cmp dword [esi - 8], 0x104
jl 0x1000690c
push 0x104
xor eax, eax
mov dword [esi - 0xc], 0x104
push esi
mov word [esi + 0x208], ax
call fcn.10024690
push dword [esi - 8]
push esi
call fcn.10038873
add esp, 8
test eax, eax
js 0x1000690c
cmp eax, dword [esi - 8]
jg 0x1000690c
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.10005540
mov ecx, eax
test ecx, ecx
je 0x10006916
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x458], edi
mov byte [ebp - 4], 3
mov eax, dword [edi - 8]
sub ebx, dword [edi - 4]
sub eax, 0x104
or eax, ebx
jge 0x100061e5
push 0x104
lea ecx, [ebp - 0x458]
call fcn.1000a000
mov edi, dword [ebp - 0x458]
cmp dword [edi - 8], 0x104
jl 0x10006920
push 0x104
xor eax, eax
mov dword [edi - 0xc], 0x104
push edi
mov word [edi + 0x208], ax
call fcn.100252d0
push dword [edi - 8]
push edi
call fcn.10038873
add esp, 8
test eax, eax
js 0x1000690c
cmp eax, dword [edi - 8]
jg 0x1000690c
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
call fcn.10005540
mov ecx, eax
test ecx, ecx
je 0x1000692a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x450], eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x420]
push 0x208
push 0
push eax
call fcn.10031950
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push dword [0x1007a4a8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.10005540
mov ecx, eax
test ecx, ecx
je 0x10006934
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x43c]
call fcn.10004850
test al, al
jne 0x100062e4
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100062c2
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x43c]
call fcn.1000a650
mov byte [ebp - 4], 7
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.10004f90
add esp, 8
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x43c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10006320
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x460]
push 1
push eax
call fcn.1002d790
add esp, 8
mov byte [ebp - 4], 9
call fcn.10005540
mov ecx, eax
test ecx, ecx
je 0x1000693e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x44c], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x46c]
push eax
call fcn.1001eed0
add esp, 4
mov dword [ebp - 0x448], eax
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x468]
push eax
call fcn.10005400
mov ecx, eax
call fcn.1000b220
mov dword [ebp - 0x444], eax
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x464]
push eax
call fcn.10005400
mov ecx, eax
call fcn.1000b1b0
mov ebx, eax
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x43c]
push eax
call fcn.10005400
mov ecx, eax
call fcn.1000b290
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x448]
push dword [ecx]
mov ecx, dword [ebp - 0x440]
push dword [ecx + 0xc]
mov ecx, dword [ebp - 0x444]
push edi
push esi
push dword [ebp - 0x450]
push dword [ecx]
push dword [ebx]
push dword [eax]
lea eax, [ebp - 0x44c]
push dword [ebp - 0x460]
push eax
call fcn.10004e90
add esp, 0x28
mov byte [ebp - 4], 0xe
or ebx, 0xffffffff
mov edx, dword [ebp - 0x43c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000641a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
mov eax, ebx
mov edx, dword [ebp - 0x464]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000643b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
mov eax, ebx
mov edx, dword [ebp - 0x468]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000645c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov eax, ebx
mov edx, dword [ebp - 0x46c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000647d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10005540
mov ecx, eax
test ecx, ecx
je 0x10006948
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x43c]
push 0x1388
push 0x1388
push 0x1388
push 0x1388
push str.HTTP_1.1
push 0x1005ba6c
push 0
push 0
push 0
push eax
push dword [ebp - 0x44c]
call fcn.100056e0
mov esi, dword [ebp - 0x43c]
cmp dword [esi - 0xc], 0
jne 0x1000656a
push 0x1005a6b8
lea ecx, [ebp - 0x448]
call fcn.100036d0
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x444]
push str.svc_getcfg_fail
call fcn.100036d0
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x448]
push 0
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.100054a0
mov ecx, eax
call fcn.10017be0
mov byte [ebp - 4], 0x16
mov eax, ebx
mov edx, dword [ebp - 0x444]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10006549
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x15
mov eax, ebx
mov edx, dword [ebp - 0x448]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000656a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi - 4], 1
jle 0x10006584
push dword [esi - 0xc]
lea ecx, [ebp - 0x43c]
call fcn.10004d80
mov esi, dword [ebp - 0x43c]
mov ecx, dword [ebp - 0x440]
lea eax, [ebp - 0x45c]
push esi
push eax
call fcn.10009ad0
mov byte [ebp - 4], 0x1a
mov eax, dword [ebp - 0x440]
mov eax, dword [eax + 0xc]
cmp dword [eax - 0xc], 0
je 0x100066e8
test eax, eax
je 0x10006952
mov ecx, dword [ebp - 0x45c]
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x100065e6
test dx, dx
je 0x100065e2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x100065e6
add ecx, 4
add eax, 4
test dx, dx
jne 0x100065c0
xor eax, eax
jmp 0x100065eb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100066e8
push str.hash_no_chang
call fcn.10004bd0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10031950
add esp, 0x10
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x1007a4a8]
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], 0x1b
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100066d4
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.1001ed80
add esp, 8
test eax, eax
je 0x100066d4
cmp dword [ebp - 0x424], 0x10
lea eax, [ebp - 0x438]
mov ecx, dword [ebp - 0x440]
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.10007430
mov ecx, dword [ebp - 0x440]
call fcn.1000a4a0
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x438]
call fcn.10003ca0
jmp 0x1000680a
push str.ser_data
call fcn.10004bd0
add esp, 4
cmp dword [esi - 4], 1
jle 0x1000670f
push dword [esi - 0xc]
lea ecx, [ebp - 0x43c]
call fcn.10004d80
mov esi, dword [ebp - 0x43c]
mov ecx, dword [ebp - 0x440]
push esi
call fcn.10007430
test eax, eax
je 0x1000680a
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10031950
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x1007a4a8]
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]
cmp dword [esi - 4], 1
jle 0x1000678b
push dword [esi - 0xc]
lea ecx, [ebp - 0x43c]
call fcn.10004d80
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 0x100067c0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x438]
call fcn.1000ada0
mov byte [ebp - 4], 0x1c
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.1001f980
add esp, 8
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x438]
call fcn.10003ca0
mov ecx, dword [ebp - 0x440]
call fcn.1000a4a0
mov byte [ebp - 4], 0x15
mov eax, ebx
mov edx, dword [ebp - 0x45c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000682b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10006846
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov eax, ebx
mov edx, dword [ebp - 0x44c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10006867
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x460]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10006888
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x450]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100068a9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x100068c4
mov ecx, dword [edi]
push edi
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 0x100068e6
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.1002deb9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10004830
push 0x80070057
call fcn.10004830
push 0x80004005
call fcn.10004830
push 0x80070057
call fcn.10004830
push 0x80004005
call fcn.10004830
push 0x80004005
call fcn.10004830
push 0x80004005
call fcn.10004830
push 0x80004005
call fcn.10004830
push 0x80004005
call fcn.10004830
int3