Function at 0x51e200
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5fff8f
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0xa8], edi
mov ebx, dword [esp + 0xb0]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x51e26c
lea eax, [ebx - 0x10]
mov dword [esp + 0xa8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x51ea18
or ebp, 0xffffffff
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x84], edi
lea ecx, [esp + 0x64]
push ecx
lea eax, [ebp + 2]
mov ecx, ebx
mov byte [esp + 0xac], 1
call fcn.0050e530
cmp eax, edi
jl 0x51e9ea
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x20]
push ecx
lea eax, [esp + 0x68]
mov byte [esp + 0xac], 2
call fcn.0050e200
test eax, eax
je 0x51e9c3
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
mov edx, dword [0x677600]
add eax, 0x10
mov dword [esp + 0x30], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call eax
add eax, 0x10
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edi
mov byte [esp + 0xa8], 3
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
mov byte [esp + 0xa8], 4
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x28], esi
mov byte [esp + 0xa8], 5
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0xa8], 6
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
lea ebx, [esp + 0x20]
mov byte [esp + 0xa8], 7
call fcn.00415310
mov edi, eax
call fcn.00415390
mov eax, dword [esp + 0x20]
cmp dword [eax - 0xc], 0
jne 0x51e459
mov byte [esp + 0xa8], 6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51e3e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 5
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51e40e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [esp + 0xa8], 4
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51e432
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add ebp, 0xfffffff0
mov byte [esp + 0xa8], 3
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51e959
mov ecx, dword [ebp]
push ebp
jmp 0x51e952
cmp dword [eax - 0xc], 3
jle 0x51e48f
lea ecx, [esp + 0x20]
push ecx
mov eax, 3
xor ecx, ecx
lea edx, [esp + 0x4c]
call fcn.00409f60
or dword [esp + 0x2c], 1
push eax
mov ecx, 0x628dd8
call fcn.00414f20
add esp, 4
test al, al
je 0x51e48f
mov bl, 1
jmp 0x51e491
xor bl, bl
test byte [esp + 0x2c], 1
je 0x51e4bd
mov eax, dword [esp + 0x48]
and dword [esp + 0x2c], 0xfffffffe
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x51e4bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x51e516
mov ecx, 4
lea esi, [esp + 0x5c]
lea edx, [esp + 0x20]
call fcn.00409f40
lea edi, [esp + 0x18]
mov byte [esp + 0xa8], 8
call fcn.0040ab90
mov byte [esp + 0xa8], 7
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51e50c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x44], 1
jmp 0x51e52b
lea eax, [esp + 0x20]
lea edi, [esp + 0x18]
call fcn.0040ab90
mov dword [esp + 0x44], 0
mov ebp, dword [esp + 0x18]
cmp dword [ebp - 0xc], 0
jle 0x51e553
push 0x20
push ebp
call fcn.005d33c4
add esp, 8
test eax, eax
je 0x51e553
sub eax, ebp
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
jne 0x51e5df
lea eax, [esp + 0x18]
lea edi, [esp + 0x28]
call fcn.0040ab90
mov esi, dword [esp + 0x28]
mov ecx, esi
call fcn.00510590
test eax, eax
jne 0x51e5c7
mov byte [esp + 0xa8], 6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51e597
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 5
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51e5bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
jmp 0x51e690
mov edx, 0x6244e0
lea edi, [esp + 0x24]
mov ebx, 1
call fcn.00403760
jmp 0x51e857
lea ecx, [esp + 0x18]
push ecx
mov eax, esi
xor ecx, ecx
lea edx, [esp + 0x54]
call fcn.00409f60
lea edi, [esp + 0x28]
mov byte [esp + 0xa8], 9
call fcn.0040ab90
mov byte [esp + 0xa8], 7
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x51e62a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x28]
mov ecx, edi
call fcn.00510590
test eax, eax
jne 0x51e6eb
mov byte [esp + 0xa8], 6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51e665
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 5
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51e68d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0xa8], 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51e6b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0xa8], 3
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51e6d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x30]
mov byte [esp + 0xa8], 2
call fcn.004510b0
jmp 0x51e9a1
lea ecx, [esi + 1]
lea esi, [esp + 0x60]
lea edx, [esp + 0x18]
call fcn.00409f40
lea edi, [esp + 0x18]
mov byte [esp + 0xa8], 0xa
call fcn.0040ab90
mov byte [esp + 0xa8], 7
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51e734
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x18]
cmp dword [ebp - 0xc], 0
jle 0x51e758
push 0x20
push ebp
call fcn.005d33c4
add esp, 8
test eax, eax
je 0x51e758
sub eax, ebp
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
jne 0x51e7b4
xor ecx, ecx
lea esi, [esp + 0x58]
lea edx, [esp + 0x18]
call fcn.00409f40
lea edi, [esp + 0x1c]
mov byte [esp + 0xa8], 0xb
call fcn.0040ab90
mov byte [esp + 0xa8], 7
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51e7a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.005d3c34
add esp, 4
mov ebx, eax
jmp 0x51e857
lea edx, [esp + 0x18]
push edx
mov eax, esi
xor ecx, ecx
lea edx, [esp + 0x50]
call fcn.00409f60
lea edi, [esp + 0x1c]
mov byte [esp + 0xa8], 0xc
call fcn.0040ab90
mov byte [esp + 0xa8], 7
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51e7ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.005d3c34
lea ecx, [esi + 1]
add esp, 4
lea esi, [esp + 0x54]
lea edx, [esp + 0x18]
mov ebx, eax
call fcn.00409f40
lea edi, [esp + 0x24]
mov byte [esp + 0xa8], 0xd
call fcn.0040ab90
mov byte [esp + 0xa8], 7
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x51e857
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x28]
lea edi, [esp + 0x30]
call fcn.0040ab90
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x24]
lea edi, [esp + 0x3c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ecx
call fcn.0040ab90
mov eax, dword [esp + 0xb4]
lea edx, [esp + 0x30]
push edx
push eax
call fcn.00453820
mov esi, eax
lea eax, [esp + 0x30]
mov edi, esi
call fcn.0040ab90
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
lea edi, [esi + 0xc]
lea eax, [esp + 0x3c]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
call fcn.0040ab90
mov eax, dword [esp + 0x40]
mov dword [esi + 0x10], eax
mov byte [esp + 0xa8], 6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51e8e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 5
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51e90d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51e935
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0xa8], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51e959
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 2
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51e981
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51e9a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push ecx
lea eax, [esp + 0x68]
call fcn.0050e200
xor edi, edi
test eax, eax
jne 0x51e2e2
mov ebx, dword [esp + 0xb0]
or ebp, 0xffffffff
mov byte [esp + 0xa8], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x51e9ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x7c]
call fcn.0050df50
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
call fcn.0050df50
lea eax, [ebx - 0x10]
mov dword [esp + 0xa8], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x51ea24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 8