Function at 0x472170
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd6a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x50f52c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x510a34]
mov esi, dword [eax + 0xc]
mov dword [ebp - 0x18], 0
mov ebx, eax
cmp esi, dword [eax + 0x10]
jbe 0x4721b8
call fcn.004b32e0
mov eax, dword [0x510a34]
mov edi, dword [ebx]
mov dword [ebp - 0x1c], esi
add esi, 0x148
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], esi
lea esp, [esp]
mov ebx, dword [eax + 0x10]
mov esi, eax
cmp dword [eax + 0xc], ebx
jbe 0x4721df
call fcn.004b32e0
mov esi, dword [esi]
test edi, edi
je 0x4721e9
cmp edi, esi
je 0x4721ee
call fcn.004b32e0
cmp dword [ebp - 0x1c], ebx
jae 0x472457
test edi, edi
jne 0x4723bd
call fcn.004b32e0
xor eax, eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x10]
jb 0x472213
call fcn.004b32e0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x208], 0
test edi, edi
jne 0x4723c4
call fcn.004b32e0
xor eax, eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x10]
jb 0x47223c
call fcn.004b32e0
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
cmp esi, dword [eax + 4]
jbe 0x47224b
call fcn.004b32e0
mov edx, dword [ebp - 0x10]
mov edi, dword [edx - 0xc]
mov dword [ebp - 0x24], esi
add esi, 0x68
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], esi
test eax, eax
jne 0x4723cb
call fcn.004b32e0
xor eax, eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x10]
jb 0x472279
call fcn.004b32e0
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebx + 4]
cmp dword [ebx], esi
ja 0x472287
cmp esi, esi
jbe 0x47228c
call fcn.004b32e0
mov eax, dword [ebx - 0xc]
test edi, edi
je 0x472297
cmp edi, eax
je 0x47229c
call fcn.004b32e0
cmp dword [ebp - 0x24], esi
jae 0x47241b
push 0
push 0x4ed858
lea ecx, [ebp - 0x30]
call fcn.004163c0
mov esi, eax
mov dword [ebp - 4], 0
test edi, edi
jne 0x4723d2
call fcn.004b32e0
xor eax, eax
mov edx, dword [ebp - 0x24]
cmp edx, dword [eax + 0x10]
jb 0x4722d9
call fcn.004b32e0
mov eax, dword [ebp - 0x14]
push 0
push esi
add eax, 0xffffffcc
push eax
call fcn.0041d850
mov bl, al
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x472324
mov esi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x472324
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x472324
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
test bl, bl
jne 0x4723e8
test edi, edi
jne 0x4723d9
call fcn.004b32e0
xor eax, eax
mov ebx, dword [ebp - 0x24]
cmp ebx, dword [eax + 0x10]
jb 0x472348
call fcn.004b32e0
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0x38], 8
lea eax, [esi - 0x4c]
jb 0x472356
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4723ee
test edi, edi
jne 0x4723e0
call fcn.004b32e0
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x47237a
call fcn.004b32e0
mov eax, dword [esi]
mov ecx, eax
cmp ecx, eax
jae 0x472382
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
test eax, eax
je 0x4723ee
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4723e4
call fcn.004b32e0
xor eax, eax
mov edx, dword [ebp - 0x1c]
cmp edx, dword [eax + 0x10]
jb 0x4723aa
call fcn.004b32e0
mov ecx, dword [ebp - 0x10]
mov eax, 1
mov dword [ecx + 0x208], eax
mov dword [ebp - 0x18], eax
jmp 0x4723ee
mov eax, dword [edi]
jmp 0x472206
mov eax, dword [edi]
jmp 0x47222f
mov eax, dword [eax]
jmp 0x47226c
mov eax, dword [edi]
jmp 0x4722cc
mov eax, dword [edi]
jmp 0x47233b
mov eax, dword [edi]
jmp 0x472370
mov eax, dword [eax]
jmp 0x47239d
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x14]
test edi, edi
jne 0x472417
call fcn.004b32e0
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x472403
call fcn.004b32e0
add ebx, 0x9c
mov dword [ebp - 0x24], ebx
add esi, 0x9c
jmp 0x472257
mov eax, dword [edi]
jmp 0x4723f9
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x472453
call fcn.004b32e0
xor eax, eax
mov edx, dword [ebp - 0x1c]
cmp edx, dword [eax + 0x10]
jb 0x472436
call fcn.004b32e0
add dword [ebp - 0x1c], 0x3b4
mov eax, dword [0x510a34]
mov edi, dword [ebp - 0x20]
add ebx, 0x3b4
mov dword [ebp - 0x10], ebx
jmp 0x4721d0
mov eax, dword [eax]
jmp 0x472429
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret