Function at 0x52ad40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63c985
mov eax, dword fs:[0]
push eax
sub esp, 0x494
mov eax, dword [0x6d1554]
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 edi, ecx
mov dword [ebp - 0x49c], edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x4a0], ebx
mov dword [ebp - 0x490], 0
mov dword [ebp - 0x494], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov esi, dword [edi + 0x48]
mov dword [ebp - 4], 0
mov dword [ebp - 0x490], 1
test esi, esi
je 0x52ae97
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.005c7920
add esp, 0xc
call esi
mov esi, eax
test esi, esi
je 0x52ae77
push esi
lea eax, [ebp - 0x410]
push 0x400
push eax
call fcn.005ffce6
mov eax, dword [edi + 0x3c]
push esi
call eax
add esp, 0x10
mov dword [ebp - 0x418], 0
xor eax, eax
mov dword [ebp - 0x414], 7
lea ecx, [ebp - 0x428]
mov word [ebp - 0x428], ax
push 1
push 0x65af14
call fcn.00483a10
push 0xfde9
lea eax, [ebp - 0x410]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x458]
push eax
call fcn.005503d0
add esp, 0xc
push ebx
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 2
push ecx
push eax
mov ecx, edi
call fcn.0052eff0
lea ecx, [ebp - 0x458]
call fcn.0047cf30
lea ecx, [ebp - 0x428]
call fcn.0047cf30
mov eax, ebx
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.0054d193
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x8c], 0
jbe 0x52ae77
mov edi, dword [edi + 0x88]
mov esi, dword [edi]
cmp esi, edi
je 0x52ae77
nop dword [eax]
lea ebx, [esi + 0x10]
push ebx
lea ecx, [ebp - 0x488]
call fcn.004b1470
lea eax, [ebx + 0x18]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0x470]
call fcn.005376d0
mov dword [ebp - 4], 4
call fcn.0047fb20
mov ecx, eax
test ecx, ecx
je 0x52b1f9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x48c], eax
push 0x65503c
lea ecx, [ebp - 0x48c]
mov byte [ebp - 4], 5
call fcn.0047d4d0
test al, al
jne 0x52af23
push 0
push 0x65503c
lea ecx, [ebp - 0x48c]
call fcn.00481fe0
push 0xa
push str.product_id
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 6
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0xf
mov byte [ebp - 0x428], 0
call fcn.00483920
push 0xfde9
lea eax, [ebp - 0x48c]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x498]
push eax
lea ecx, [ebp - 0x470]
call fcn.00538db0
mov edx, dword [eax]
xor eax, eax
mov ecx, edx
mov byte [ebp - 4], 8
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x52afa5
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x440]
call fcn.00483a10
mov edx, dword [ebp - 0x498]
or eax, 0xffffffff
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x52afe3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x414]
mov byte [ebp - 4], 0xb
cmp edx, 0x10
jb 0x52b021
mov ecx, dword [ebp - 0x428]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x52b017
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52b203
push edx
push ecx
call fcn.0054cd75
add esp, 8
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0xf
mov byte [ebp - 0x428], 0
mov edx, dword [ebp - 0x48c]
or eax, 0xffffffff
mov byte [ebp - 4], 0xc
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x52b05e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
mov ecx, dword [ebp - 0x49c]
cmovae eax, dword [ebp - 0x440]
push eax
push 1
lea eax, [ebp - 0x458]
push eax
call fcn.0052a910
or dword [ebp - 0x490], 2
lea eax, [ebp - 0x458]
cmp dword [ebp - 0x444], 8
cmovae eax, dword [ebp - 0x458]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x444]
mov ebx, eax
cmp edx, 8
jb 0x52b0eb
mov ecx, dword [ebp - 0x458]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x52b0e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52b203
push edx
push ecx
call fcn.0054cd75
add esp, 8
test ebx, ebx
mov ebx, dword [ebp - 0x494]
je 0x52b119
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x440]
push ecx
cmp dword [ebx + 8], eax
je 0x52b111
mov ecx, eax
call fcn.004b1470
add dword [ebx + 4], 0x18
jmp 0x52b119
push eax
mov ecx, ebx
call fcn.004b74b0
mov edx, dword [ebp - 0x42c]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x52b15d
mov ecx, dword [ebp - 0x440]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x52b153
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52b203
push edx
push ecx
call fcn.0054cd75
add esp, 8
lea ecx, [ebp - 0x470]
mov byte [ebp - 4], 0
call fcn.00531740
mov edx, dword [ebp - 0x474]
cmp edx, 8
jb 0x52b1a8
mov ecx, dword [ebp - 0x488]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x52b19e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52b203
push edx
push ecx
call fcn.0054cd75
add esp, 8
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x52b1d4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x52b1d0
nop word [eax + eax]
cmp esi, dword [eax + 8]
jne 0x52b1d0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x52b1c0
mov esi, eax
jmp 0x52b1ec
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x52b1ec
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x52b1e0
cmp esi, edi
jne 0x52aeb0
jmp 0x52ae77
push 0x80004005
call fcn.0047d4b0
call fcn.005d1f0f
int3