Function at 0x50ff40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b0010
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x778400]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], ecx
mov eax, dword [ebp - 0x7c]
add eax, 0x30
push eax
lea ecx, [ebp - 0x74]
call fcn.00419d50
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x7c]
add ecx, 0x30
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x50ffb9
mov dword [ebp - 0xa0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.00419eb0
mov eax, dword [ebp - 0xa0]
jmp 0x51030b
mov edx, dword [ebp - 0x7c]
cmp dword [edx + 0x2d44], 0
je 0x50ffd7
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x2d44]
push ecx
call fcn.00671601
add esp, 4
push 0x6e15fc
lea ecx, [ebp - 0x74]
call fcn.0041af60
push eax
call fcn.00671539
add esp, 8
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
jne 0x51001a
mov dword [ebp - 0xac], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.00419eb0
mov eax, dword [ebp - 0xac]
jmp 0x51030b
mov byte [ebp - 0x50], 0
push 0x3f
push 0
lea edx, [ebp - 0x4f]
push edx
call fcn.0066eb10
add esp, 0xc
lea eax, [ebp - 0x50]
mov dword [ebp - 0x78], eax
push 0x40
lea ecx, [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x80]
push edx
call fcn.005040a0
add esp, 0xc
test eax, eax
jne 0x51007a
mov eax, dword [ebp - 0x80]
push eax
call fcn.006712b9
add esp, 4
mov dword [ebp - 0xa4], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.00419eb0
mov eax, dword [ebp - 0xa4]
jmp 0x51030b
mov ecx, dword [ebp - 0x7c]
add ecx, 0x2c08
call fcn.0041af60
push eax
lea ecx, [ebp - 0x50]
push ecx
call fcn.00670ab0
add esp, 8
test eax, eax
jne 0x5100c9
mov edx, dword [ebp - 0x80]
push edx
call fcn.006712b9
add esp, 4
mov dword [ebp - 0x9c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.00419eb0
mov eax, dword [ebp - 0x9c]
jmp 0x51030b
mov dword [ebp - 0x90], 0x100000
push 0xc
lea ecx, [ebp - 0x5c]
call fcn.00413f70
lea ecx, [ebp - 0x5c]
call fcn.00415830
mov byte [ebp - 4], 1
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x90]
push ecx
mov edx, dword [ebp - 0x80]
push edx
call fcn.00503da0
add esp, 0xc
test eax, eax
jne 0x510140
mov eax, dword [ebp - 0x80]
push eax
call fcn.006712b9
add esp, 4
mov dword [ebp - 0xb4], 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.0041a280
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.00419eb0
mov eax, dword [ebp - 0xb4]
jmp 0x51030b
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.006712b9
add esp, 4
mov dword [ebp - 0x98], 1
xorpd xmm0, xmm0
movlpd qword [ebp - 0x8c], xmm0
mov ecx, dword [ebp - 0x7c]
add ecx, 0x2c20
call fcn.0041a2a0
mov dword [ebp - 0x94], eax
lea ecx, [ebp - 0x5c]
call fcn.0041a2a0
cmp dword [ebp - 0x94], eax
je 0x5101b6
mov dword [ebp - 0xb0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.0041a280
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.00419eb0
mov eax, dword [ebp - 0xb0]
jmp 0x51030b
mov dword [ebp - 0x84], 0
jmp 0x5101d1
mov edx, dword [ebp - 0x84]
add edx, 1
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 0x84]
cmp eax, dword [ebp - 0x94]
jge 0x5102de
mov ecx, dword [ebp - 0x84]
push ecx
mov ecx, dword [ebp - 0x7c]
add ecx, 0x2c20
call fcn.0041a2c0
mov ecx, eax
call fcn.0041af60
push eax
mov edx, dword [ebp - 0x84]
push edx
lea ecx, [ebp - 0x5c]
call fcn.0041b550
mov ecx, eax
call fcn.0041af60
push eax
call fcn.00670ab0
add esp, 8
test eax, eax
je 0x5102ba
mov eax, dword [ebp - 0x94]
sub eax, 1
cmp dword [ebp - 0x84], eax
jne 0x51027b
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x2d48]
sub edx, 1
mov eax, dword [ecx + 0x2d4c]
sbb eax, 0
push eax
push edx
mov ecx, dword [ebp - 0x88]
push ecx
mov edx, dword [ebp - 0x8c]
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.00513040
mov eax, dword [ebp - 0x7c]
mov byte [eax + 0x36cc], 1
mov dword [ebp - 0x98], 0
jmp 0x5102ba
mov eax, dword [ebp - 0x90]
cdq
add eax, dword [ebp - 0x8c]
adc edx, dword [ebp - 0x88]
push edx
push eax
mov ecx, dword [ebp - 0x88]
push ecx
mov edx, dword [ebp - 0x8c]
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.00513040
mov eax, dword [ebp - 0x7c]
mov byte [eax + 0x36cc], 1
mov dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x90]
cdq
add eax, dword [ebp - 0x8c]
adc edx, dword [ebp - 0x88]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], edx
jmp 0x5101c2
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0xa8], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.0041a280
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.00419eb0
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0066c98d
mov esp, ebp
pop ebp
ret