Function at 0x4174b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5969bb
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x60f520]
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 - 0x20], edi
lea ecx, [ebp - 0x34]
call fcn.004fba70
mov dword [ebp - 4], 0
push dword [ebp - 0x34]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 0xffffffff
test eax, eax
je 0x4179a9
push 0x48
call fcn.00551c81
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x417584
mov esi, dword [ebp - 0x34]
test esi, esi
jne 0x41752e
mov ecx, dword [ebp - 0x14]
xor eax, eax
push eax
call fcn.004e9220
mov esi, eax
jmp 0x417586
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417533
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jle 0x41755f
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov edi, dword [ebp - 0x20]
push eax
call fcn.004e9220
mov esi, eax
jmp 0x417586
add edi, edi
mov eax, edi
call fcn.00562a90
mov ecx, esp
mov edx, esi
push 3
push edi
call fcn.00412150
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
push eax
call fcn.004e9220
mov esi, eax
jmp 0x417586
xor esi, esi
mov byte [ebp - 4], 0
mov eax, dword [esi + 0x20]
push ecx
add eax, 8
mov ecx, esi
push eax
call fcn.004e9320
test al, al
je 0x4179a9
mov esi, dword [esi + 0x18]
test esi, esi
je 0x4179a9
lea esp, [esp]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
test eax, eax
jne 0x4175c7
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x4175b0
jmp 0x4179a9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov esi, eax
mov dword [ebp - 0x44], esi
test esi, esi
je 0x4179a9
push str.mergeable_catalog_min_items_cnt
lea ecx, [esi + 0x2c]
call fcn.004e9e50
test eax, eax
je 0x4175f4
mov eax, dword [eax + 0x18]
add eax, 8
jmp 0x4175f6
xor eax, eax
push eax
call fcn.00552d04
add esp, 4
test eax, eax
je 0x417606
mov dword [edi + 0x1c], eax
push str.classInfos
mov ecx, esi
call fcn.0041cdb0
mov ecx, eax
call fcn.0041cdf0
mov edi, eax
test edi, edi
je 0x4177ca
push 0x5bc114
lea ecx, [edi + 0x2c]
call fcn.004e9e50
test eax, eax
je 0x41763c
mov eax, dword [eax + 0x18]
add eax, 8
jmp 0x41763e
xor eax, eax
push eax
call fcn.00552d04
add esp, 4
mov dword [ebp - 0x18], eax
lea ecx, [edi + 0x2c]
push str.catalog_id
call fcn.004e9e50
test eax, eax
je 0x417663
mov eax, dword [eax + 0x18]
add eax, 8
jmp 0x417665
xor eax, eax
push eax
call fcn.00552d04
add esp, 4
mov dword [ebp - 0x40], eax
lea ecx, [edi + 0x2c]
push str.name
call fcn.004e9e50
test eax, eax
je 0x41768a
mov edx, dword [eax + 0x18]
add edx, 8
jmp 0x41768c
xor edx, edx
lea ecx, [ebp - 0x14]
call fcn.0050cba0
push str.rule
lea ecx, [edi + 0x2c]
mov byte [ebp - 4], 2
call fcn.004e9e50
test eax, eax
je 0x4176b1
mov edx, dword [eax + 0x18]
add edx, 8
jmp 0x4176b3
xor edx, edx
lea ecx, [ebp - 0x1c]
call fcn.0050cba0
mov byte [ebp - 4], 3
call fcn.0040bce0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x417817
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040b7d0
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
add ecx, 4
call fcn.00419960
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x28]
mov dword [eax + 4], ecx
lea ecx, [eax + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.0040b7d0
push ecx
mov ecx, dword [ebp - 0x1c]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.0040c3c0
mov ecx, dword [ebp - 0x20]
add eax, 0x10
mov dword [esi], eax
push dword [ebp - 0x18]
call fcn.00417a40
mov esi, dword [edi + 0x28]
test esi, esi
je 0x41775d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
test eax, eax
jne 0x417809
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x417747
xor edi, edi
mov byte [ebp - 4], 3
mov ecx, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41777f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov ecx, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41779f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4177bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x417623
mov esi, dword [ebp - 0x44]
push str.catalogInfos
mov ecx, esi
call fcn.0041cdb0
mov ecx, eax
call fcn.0041cdf0
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x4179a6
lea ebx, [ebx]
push 0x5bc114
lea ecx, [ebx + 0x2c]
call fcn.004e9e50
test eax, eax
je 0x417821
mov eax, dword [eax + 0x18]
add eax, 8
jmp 0x417823
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov edi, eax
jmp 0x41775f
push 0x80004005
call fcn.0040c390
xor eax, eax
push eax
call fcn.00552d04
add esp, 4
mov dword [ebp - 0x14], eax
lea ecx, [ebx + 0x2c]
push str.name
call fcn.004e9e50
test eax, eax
je 0x417848
mov edx, dword [eax + 0x18]
add edx, 8
jmp 0x41784a
xor edx, edx
lea ecx, [ebp - 0x1c]
call fcn.0050cba0
mov byte [ebp - 4], 5
lea ecx, [ebx + 0x2c]
push str.listmodeThreshold
mov dword [ebp - 0x38], 0xffffffff
call fcn.004e9e50
test eax, eax
je 0x417886
mov eax, dword [eax + 0x18]
lea ecx, [ebp - 0x38]
push ecx
add eax, 8
push 0x5c7b7c
push eax
call fcn.00557ef6
add esp, 0xc
push str.mergeable
lea ecx, [ebx + 0x2c]
mov dword [ebp - 0x3c], 1
call fcn.004e9e50
test eax, eax
je 0x4178b6
mov eax, dword [eax + 0x18]
lea ecx, [ebp - 0x3c]
push ecx
add eax, 8
push 0x5c7b7c
push eax
call fcn.00557ef6
add esp, 0xc
call fcn.0040bce0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x417817
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040b7d0
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
mov ebx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
push eax
lea ecx, [ecx + 0xc]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], edi
call fcn.004199e0
mov ecx, dword [ebp - 0x30]
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
mov dword [esi], ecx
lea ecx, [esi + 4]
call fcn.0040b7d0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edi
mov esi, dword [ebp - 0x18]
mov esi, dword [esi + 0x28]
test esi, esi
je 0x417956
lea esp, [esp]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
test eax, eax
jne 0x4179e9
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x417940
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 5
or esi, 0xffffffff
mov edx, dword [ebp - 0x2c]
mov ecx, esi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41797e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41799e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x4177f0
or ebx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4179ca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea esp, [ebp - 0x58]
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.0055199a
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov ebx, eax
mov dword [ebp - 0x18], eax
jmp 0x41795b