Function at 0x59ed1d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 8
push 0x60
mov eax, 0x60cf71
call fcn.005f9b71
mov dword [ebp - 0x14], ecx
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x59ee2a
push esi
lea ecx, [ebp - 0x20]
call fcn.0040d2ee
xor edi, edi
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x1c], edi
xor eax, eax
inc eax
mov byte [ebp - 4], al
push dword [0x6737f0]
mov dword [ebp - 0x24], eax
call fcn.00597240
mov ecx, 0x673510
cmp eax, 0xffffffff
jne 0x59ed9c
push edi
push dword [0x6737f0]
lea eax, [ebp - 0x18]
push eax
call fcn.00597a80
mov ecx, dword [eax]
test ecx, ecx
je 0x59ed89
lock inc dword [ecx + 0x34]
mov ecx, dword [ebp - 0x18]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
test ecx, ecx
je 0x59edb1
call fcn.00422d15
jmp 0x59edb1
push eax
call fcn.0042b6f7
mov ecx, dword [eax]
test ecx, ecx
je 0x59edac
lock inc dword [ecx + 0x34]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x20]
test esi, esi
je 0x59ee1a
mov ecx, dword [ebp - 0x14]
call fcn.005a098c
test eax, eax
jne 0x59edcd
mov ecx, dword [ebp - 0x14]
push eax
call fcn.005a092c
push ecx
lea ecx, [ebp - 0x6c]
call fcn.0041bf00
mov eax, dword [ebx + 0xc]
mov byte [ebp - 4], 2
sub eax, 1
je 0x59ee4f
sub eax, 1
je 0x59ee34
sub eax, 1
je 0x59ee4f
sub eax, 1
je 0x59ee34
sub eax, 1
je 0x59ee4f
lea ecx, [ebp - 0x6c]
call fcn.0041bf3f
or eax, 0xffffffff
lock xadd dword [esi + 0x34], eax
dec eax
jne 0x59ee1a
mov ecx, esi
call fcn.0041bf3f
push 0x38
push esi
call fcn.004dadca
pop ecx
pop ecx
lea ecx, [edi - 0xc]
cmp ecx, 0x668010
je 0x59ee2a
call fcn.00407965
xor eax, eax
call fcn.005f9aee
ret 0x10
mov edi, dword [ebp - 0x20]
mov edx, edi
call fcn.005d56b4
test eax, eax
je 0x59eeac
push 2
push edi
lea ecx, [ebp - 0x6c]
call fcn.00472f2f
jmp 0x59eeac
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x59edf6
test al, 0x10
je 0x59ee6c
push 1
push edi
lea ecx, [ebp - 0x6c]
call fcn.00596200
jmp 0x59ee94
test eax, 0x100
jne 0x59ee94
mov ecx, edi
call fcn.005528f1
test eax, eax
jne 0x59ee94
mov edx, edi
call fcn.005d56b4
test eax, eax
je 0x59ee94
push 0
push edi
lea ecx, [ebp - 0x6c]
call fcn.00472f2f
cmp dword [ebp - 0x68], 0
je 0x59edf6
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x6c]
push 1
push eax
call fcn.005a0c1d
mov eax, dword [0x673bdc]
test eax, eax
je 0x59eef1
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [eax + 0x548]
call fcn.0047bdb9
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
lea ecx, [ecx + 0x548]
lea eax, [ebp - 0x34]
push eax
call fcn.0047bd6d
mov ecx, dword [ebp - 0x18]
cmp dword [eax], ecx
mov eax, dword [0x673bdc]
jne 0x59eef1
xor ecx, ecx
inc ecx
mov edx, ecx
jmp 0x59eef6
xor ecx, ecx
xor edx, edx
inc ecx
mov dword [ebp - 0x18], edx
cmp dword [ebx + 0xc], ecx
je 0x59efa1
cmp dword [ebx + 0xc], 5
je 0x59efa1
cmp dword [ebx + 0xc], 2
je 0x59ef62
cmp dword [ebx + 0xc], 4
je 0x59ef62
test edx, edx
jne 0x59efcc
mov eax, dword [ebp - 0x14]
cmp esi, dword [eax + 0x188]
jne 0x59ef4d
push 0
push dword [esi + 4]
push 0x102f
push dword [eax + 0x5a8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x14]
push 0xffffffffffffffff
push 0
call fcn.005a5482
lea ecx, [ebp - 0x6c]
call fcn.0041bf3f
test esi, esi
je 0x59ee1a
jmp 0x59edfe
cmp dword [0x673c90], 0
je 0x59ef6f
test eax, eax
jne 0x59ef84
xor ecx, ecx
mov dword [ebp - 0x24], ecx
test eax, eax
jne 0x59ef84
push ecx
lea eax, [ebp - 0x6c]
mov ecx, esi
push eax
call fcn.005967e0
cmp dword [ebp - 0x18], 0
je 0x59ef20
push dword [ebp - 0x24]
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x188]
call fcn.005967e0
jmp 0x59efcc
test eax, eax
jne 0x59efb0
lea eax, [ebp - 0x6c]
mov ecx, esi
push eax
call fcn.00474263
cmp dword [ebp - 0x18], 0
je 0x59ef20
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x188]
call fcn.00474263
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x188]
test eax, eax
je 0x59efdd
lock inc dword [eax + 0x34]
or eax, 0xffffffff
lock xadd dword [esi + 0x34], eax
dec eax
jne 0x59eff9
mov ecx, esi
call fcn.0041bf3f
push 0x38
push esi
call fcn.004dadca
pop ecx
pop ecx
mov eax, dword [ebp - 0x14]
mov esi, dword [eax + 0x188]
jmp 0x59ef23